Jump to content


- - - - -

Links as images


  • This topic is locked This topic is locked
7 replies to this topic

#1 rockraider

    EC Member

  • Members
  • PipPip
  • 36 posts

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.
Posted Image
The game I play best: Stump the developers. :D

#2 Christopher

    Owner

  • EC-Owner
  • PipPipPipPipPipPipPipPipPip
  • 725 posts

Posted 13 November 2008 - 04:56 PM

In the image tag do you have
border="0"
<img src="someimage.php border="0"...

Posted Image

#3 rockraider

    EC Member

  • Members
  • PipPip
  • 36 posts

Posted 13 November 2008 - 07:54 PM

This is the precice (sp?) code:



<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>&nbsp; |&nbsp;




Minus the extra '<A href </a>' codes IPB added. :)
Posted Image
The game I play best: Stump the developers. :D

#4 Joe

    Root Administrator

  • EC-Owner
  • PipPipPipPipPipPipPipPip
  • 393 posts

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!

#5 rockraider

    EC Member

  • Members
  • PipPip
  • 36 posts

Posted 17 November 2008 - 03:18 PM

The blue borders didn't go away. :(
Posted Image
The game I play best: Stump the developers. :D

#6 JuniorD

    EC Senior

  • Administrators
  • PipPipPipPipPipPip
  • 176 posts

Posted 17 November 2008 - 03:28 PM

you still didn't add "border=0"

Posted Image


ExchangeCore: Graphic Designs Lead Organizer and Supervisor.

Email me for Photoshop tips and technical help.


Email: JuniorD@ExchangeCore.Com


#7 Joe

    Root Administrator

  • EC-Owner
  • PipPipPipPipPipPipPipPip
  • 393 posts

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!

#8 rockraider

    EC Member

  • Members
  • PipPip
  • 36 posts

Posted 18 November 2008 - 09:35 AM

View PostJuniorD, on Nov 17 2008, 02:28 PM, said:

you still didn't add "border=0"



Oh silly me. :P

Fixed. Thanks for the help. Close now if you wish...
Posted Image
The game I play best: Stump the developers. :D





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users