Jump to content

can't get rollovers to work preloading/working


oneill2004uk

Recommended Posts

having real trouble getting rollovers to work still getting a error on line 130 can't seem to find a problem with it all the other pages work no problem atall and i've started all web pages with the same template page with it all working.it comes up with "expected object" error in IE line 130 char 1the page i'm having problems with is :-http://www.t-oneill.co.uk/gallery.htmlits the little social media icons on the top right of the page.and this is one of my pages where it works :)http://www.t-oneill.co.uk/travel.htmlhope someone can helptom.

Link to comment
Share on other sites

Not just IE. You have somehow lost your MM_preloadImages function, which you call as an onload handler. Either the code is missing from your script, or you forgot to attach an external script to the document. Such a function does exist on your travel page. That's the difference.

Link to comment
Share on other sites

you are missing these three functions to preload, also swap, and restore rollover functions

<script type="text/javascript"><!--//function MM_preloadImages() { //v3.0  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();	var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)	if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}}function MM_swapImgRestore() { //v3.0  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;}function MM_swapImage() { //v3.0  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}}//--></script>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...