-
JavaScript question
i have a qusiton on javascript, im trying to make it so when you put your mouse over a link, the link will change colors. I used the script down below, but it changes all my links to a different color.
<a href="null.html" onMouseOver="linkColor='green'" onMouseOut="linkColor='blue'">
if you know, please tell me...it has to be easy, but i just cant figure it out!?!?!
-
well, you could try
<style>
a{color:888800;text-decoration:none}
a:hover{color:FF8800;text-decoration:none}
</style>
at the head, instead of doing Java?
and if for some reason you must do it in java, try instead of linkColor, just "color", or "this.color"
Oskilian
-
Well,
i tried the color and this.color, but none of them worked...ill try your lil scrpy