Click to See Complete Forum and Search --> : highlighting link text


annabeau
04-28-2003, 12:00 PM
Do I need to make my text for a hyperlink into a .gif file in order to have it highlighted when the mouse hovers over it? Or can I do it an easier way? I'm new at this and quite stuck.

khalidali63
04-28-2003, 12:04 PM
you can do it with this code snippet.

<a href="url.com" style="color:black;" onmouseover="this.style.color='green';" onmouseout="this.style.color='black';">Link</a>

annabeau
04-28-2003, 12:20 PM
Wheeeeeeeeee!!!

Thanks a bunch! That worked like a charm!
(I'm wondering now why my beginners JAVA book doesn't have an easy answer like that?!?!?)

Can I ask you more questions as I hit more problems?
You rock!!:)

khalidali63
04-28-2003, 12:27 PM
Ofcourse you can ask as many as you come accross,thats why good folks of webdeveloper.com created this forum..:-)

One tiny bit of correction though,
this is JavaScript,its nothing even close to Java(Programming Language).JavaScript is a scripting language which is interpreted by browser..
:D

pyro
04-28-2003, 12:34 PM
Originally posted by annabeau
(I'm wondering now why my beginners JAVA book doesn't have an easy answer like that?!?!?)Because it is actually more of a CSS question. This is the CSS answer: http://forums.webdeveloper.com/showthread.php?s=&threadid=7326

annabeau
04-28-2003, 12:35 PM
Thanks for the correction too. I meant to type "my HTML book". Even so, I did not realize that Javascript and JAVA were completely different.

I really do appreciate both of you taking the time to answer my question!
Cheers!