[thelist] weird image preloading problem - help appreciated!
peter
peteratevolt at yahoo.com
Mon Mar 18 07:31:01 CST 2002
Hi everyone,
I can't fix the problem where every time I roll over
an image, the page is hitting the server to load the
rolloverimage...
I can't show the page because of an NDA...
I am using DW4 to generate the code. In the head are
the following default DW4 functions:
MM_swapImgRestore()
MM_swapImage()
MM_preloadImages()
MM_showHideLayers()
MM_findObj(n, d)
MM_reloadPage(init)
And the following function that I wrote myself and
that may well have someting wrong with it:
function checkTapes(f){
//
if ((f.amount.value > 5)&&(f.collect1.checked))
{
alert('Our apologies.\nThe Royal Mail via special
delivery method is only available if you chose maximum
5 videotapes.\nPlease Select a different delivery
method or choose less videotapes.');
return false;
} else return true;
}
This is the code for the rollover:
<td valign="bottom"><a href="javascript:;"
onMouseOver="MM_showHideLayers('Layer1','','hide','Layer2','','hide','Layer3','','hide','Layer4','','hide','Layer5a','','hide','Layer5b','','hide','Layer5c','','hide','Layer6','','hide','Layer7','','show','Layer8','','hide');MM_swapImage('button1','','images/button1.gif','button2','','images/button2.gif','button5a','','images/button5a.gif','button5b','','images/button5b.gif','button5c','','images/button5c.gif','button6','','images/button6.gif','button7','','images/button7over.gif','button4','','images/button4.gif','button3','','images/button3.gif','button8','','images/button8.gif',1)"><img
src="images/button7.gif" width="64" height="76"
name="button7" border="0" alt="Top 10 reasons to use
DVD"></a></td>
And this is the code in the body tag:
<body bgcolor="#FFFFFF" text="#000000"
onLoad="MM_preloadImages('images/button2over.gif','images/button3over.gif','images/button4over.gif','images/button1over.gif','images/button8over.gif','images/button7over.gif','images/button5aover.gif','images/button5bover.gif','images/button5cover.gif','images/button6over.gif');MM_swapImage('button1','','images/button1over.gif',1);MM_showHideLayers('Layer1','','show')"
onsubmit="return checkTapes(this)">
Is there anything obvious I'm missing? I just can't
find a productive way to attack this, I don't know
where to start. Any help is really appreciated!
Thanks
Peter
__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/
More information about the thelist
mailing list