Mon, 2004-07-12 22:55
i have a link like this:
<a href=www.yahoo.com OnMouseOver="font.color=red">click here</a>
as you can see im trying to change the color of the font on mouseover and i have tried many variations to no avail. im not a jscripter, im a vbscripter, can i please get some help on this simple question?
Thank you
Josh
Tue, 2004-07-13 00:09
#1
onmouseover javascript question
Use css, it's easier.
<style type="text/css"> a:hover { color: red; } </style>
If, for some very odd reason, you'd have to use javascript:
<a href="page.html" onmouseover="this.style.color='red'">click here</a>