my site is all asp. for some reason my designer put a javascript preload code in the main page (but only the main page) in addition to a preload statement in the body tag of hte page. We're getting errors, but if I take out the JS code, I get none on the first page....but on all subsequent pages. My designer said that I shouldn't take out the JS code....
I'm thinking I should not only take out the JS code on the main page, but also preload images on all other pages that have rollovers--in the body tag as well?
Do i need the js code in addition to the bodyonload tag?
<script language="JavaScript" 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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
<body bgcolor="E6E5D0" topmargin="0" onLoad="MM_preloadImages('images/hm_butt_er_on.jpg','images/hm_butt_women_on.jpg','/images/hm_butt_healthy_on.jpg','/images/hm_butt_cancer_on.jpg','/images/hm_butt_motion_on.jpg')">
I'm thinking I should not only take out the JS code on the main page, but also preload images on all other pages that have rollovers--in the body tag as well?
Do i need the js code in addition to the bodyonload tag?
<script language="JavaScript" 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.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a;}}
}
//-->
</script>
<body bgcolor="E6E5D0" topmargin="0" onLoad="MM_preloadImages('images/hm_butt_er_on.jpg','images/hm_butt_women_on.jpg','/images/hm_butt_healthy_on.jpg','/images/hm_butt_cancer_on.jpg','/images/hm_butt_motion_on.jpg')">