[thelist] JS rollover display glitch
Tom Dell'Aringa
pixelmech at yahoo.com
Fri Jan 17 13:02:01 CST 2003
Hey all,
Slightly embarrassing, but it has been a long time since I did
rollovers. When you roll over the tabs on my page, it works fine and
all, but you seem to lose the hand cursor to a pointer. If you
slightly move the mouse, you get the hand back. I'm wondering if this
is due to my rollover code. Here is how I am doing it:
//preload the images
contact = new Image();
contact.src = "contact_tab.gif";
contact_on = new Image();
contact_on.src = "contact_tab_on.gif";
//then the image code
<a href="contact.php"><img src="contact_tab.gif" width="100"
height="36" alt="" border="0" align="absbottom"
onmouseover="rollover(this.name, 'contact_tab_on.gif');"
onmouseout="rollover(this.name, 'contact_tab.gif');" name="contact"
/></a>
//my function
function rollover(img_name,img_src)
{
document[img_name].src = img_src;
}
You can see it www.sparklesparties.com (note, only the one page is
there)
TIA
Tom
=====
var me = tom.pixelmech.webDeveloper();
http://www.pixelmech.com/
http://www.maccaws.com/
[Making A Commercial Case for Adopting Web Standards]
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com
More information about the thelist
mailing list