View Full Version : Help with rollover effects
ben_washington
06-14-2001, 01:51 AM
How do you make a link change color when you hover the mouse over it, I know how to do it with CSS but I want to know how to use the event "onmouseover" to make rollover effects.
aslefo
06-14-2001, 05:11 PM
Check
http://www.a1javascripts.com/mouseover_scripts/
for mouseover javascripts, if that's what you're looking for.
If you want to create a rollover button, the easiest way is probably to get a HTML editor that does the trick for you.
-aslefo
Annette
06-14-2001, 10:07 PM
script....
function changecolor(which,theColor)
{
var String = "document.all."
var StringObj= String + which
Obj = eval StringObj
Obj.style.color = theColor
}
body....
<a href="www.wherever.net" onMouseover=changecolor(this,'yellow') onMouseout="changecolor(this,'')">A link</a></b>
Basicaly like this but you need to use a different obj for netscape to IE
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.