Links as images
Started by rockraider, Nov 13 2008 04:40 PM
7 replies to this topic
#1
Posted 13 November 2008 - 04:40 PM
Please move if this this in the wrong place.
I've recently been trying to create an effect when an image is a link, and when you hover your mouse over it, it 'highlights' (changes to another image that's has its' text highlighted) and then when you move your mouse off of it, it flips back to the first image (non-highlighted). I have sucessfully have done so in every broswer excpet IE.
However, in IE and Firefox 3, a blue border shows up around the image, despite not being told to display it. In Safari, Google Chrome, and Opera, there aren't any blue borders showing up.
Considering the most opular browsers are IE and FF, I'd like to know how to fix this.
I've recently been trying to create an effect when an image is a link, and when you hover your mouse over it, it 'highlights' (changes to another image that's has its' text highlighted) and then when you move your mouse off of it, it flips back to the first image (non-highlighted). I have sucessfully have done so in every broswer excpet IE.
However, in IE and Firefox 3, a blue border shows up around the image, despite not being told to display it. In Safari, Google Chrome, and Opera, there aren't any blue borders showing up.
Considering the most opular browsers are IE and FF, I'd like to know how to fix this.

The game I play best: Stump the developers. :D
#2
Posted 13 November 2008 - 04:56 PM
In the image tag do you have
border="0" <img src="someimage.php border="0"...
#3
Posted 13 November 2008 - 07:54 PM
This is the precice (sp?) code:
Minus the extra '<A href </a>' codes IPB added.
<center><a href="<A href="http://www.tbccanmore.ca/youth/">http://www.tbccanmore.ca/youth/</A>" ><img id="youthhome" src="<A href="http://www.tbccanmore.ca/graphics/youthhome1.png">http://www.tbccanmore.ca/graphics/youthhome1.png</A>" onmouseover="youthover()" onmouseout="youthout()" /></a> |
Minus the extra '<A href </a>' codes IPB added.

The game I play best: Stump the developers. :D
#4
Posted 14 November 2008 - 08:48 PM
<center><a href="" onMouseOver="document.MyImage.src='image2.gif'; " onMouseOut="document.MyImage.src='image1.gif';"> <img src="image1.gif" name="MyImage"></a>
Is a code to create the normal rollover/mouseover effect. I would imagine that there is something you could include in there that would make both images link to the webpage of your choice.
joemeyer@exchangecore.com
Any requests for designs,scripts or web-hosting please visit our Client Center.
Thank you for supporting ExchangeCore!
Any requests for designs,scripts or web-hosting please visit our Client Center.
Thank you for supporting ExchangeCore!
#5
Posted 17 November 2008 - 03:18 PM
The blue borders didn't go away.

The game I play best: Stump the developers. :D
#6
Posted 17 November 2008 - 03:28 PM
you still didn't add "border=0"
ExchangeCore: Graphic Designs Lead Organizer and Supervisor.
Email me for Photoshop tips and technical help.
Email: JuniorD@ExchangeCore.Com
#7
Posted 17 November 2008 - 05:44 PM
to remove the blue borders you'll probably need to add the css code
a, a:visited, a:active{color:YOURHEXHERE; text-decoration:none; font-weight:bold;}
a:hover{color:HOVERHEXHERE; text-decoration:underline}
joemeyer@exchangecore.com
Any requests for designs,scripts or web-hosting please visit our Client Center.
Thank you for supporting ExchangeCore!
Any requests for designs,scripts or web-hosting please visit our Client Center.
Thank you for supporting ExchangeCore!
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users




This topic is locked










