PDA

View Full Version : mouse over effect



dagie88
07-12-2005, 01:48 AM
Script: onMouseover Link Effects IE
http://www.dynamicdrive.com/dynamicindex5/linkover.htm

When I go to change the color of the link the mouse over effect doesn't work.

ex:
<a href=""><font color="#f5f5f5">blah</font></a>

If I do something like this the mouse over effect all of the sudden doesn't work. Let me know what is wrong.

jscheuer1
07-12-2005, 12:40 PM
Don't do that then. If you specify a color nested inside where this script (it really isn't a script but, rather style) has influence, it will override it. In your example, get rid of the font tag. Set the 'starting out color' for links in the style section:

<style>
a:link {color:black;}
a:hover{color:red; }
</style>

a:link is the starting out color, a:hover is the mouseover color.