View Full Version : rollover problem


tradersgold
06-29-2005, 01:10 PM
Hi all .. I have a script i like to use for rollovers. I have been using this script for ages but have a slight problem this time that i have not noticed before. Could someone take a look and let me know if something is wrong.
When the page loads none of my buttons load until i run the mouse over them? http://www.qmgolf.com/sunset/home.htm

thanks in advance if anyone can help

Paz
06-30-2005, 02:06 AM
Hi,

yes I'm seeing the same, but when I downloaded and and tried it offline it worked fine!

I'm guessing that either there is a problem with pre-loading your images (or your browser detector algo is wrong - but that doesn't make sense because it wouldn't work offline.)

I wouldn't waste any more time - try another script. I've used this one:

http://www.netspade.com/articles/javascript/rollovers.xml

PS you should put any javascript these days in an external file because of xp service pack 2 security issues - in fact I've given up completely on js - you can do similar with CSS.

Cheers,
Paz.

webdeal
07-24-2005, 05:18 AM
I use the following:

simple...

<a href="page.htm"
onMouseOver="images['link1'].src='images/123-over.gif'"
onMouseOut="images['link1'].src='images/123.gif'" >
<img border="0" src="images/123.gif" name="link1"></a>

Cheers,
webdeal