preload mousovers

liunx

Guest
ODI (<!-- m --><a class="postlink" href="http://www.organicdigitalimaging.com">http://www.organicdigitalimaging.com</a><!-- m -->) <br />
<br />
Ok, two really simple questions,<br />
<br />
1. I have forgotten how to preload my mouseovers. can someone help me?...<br />
<br />
2. how do you clear the cache in NS6.2?<br />
<br />
thanks<br />
<br />
-Me-<!--content-->This code should give a pretty good example of how to do what you're trying to do. You can pre-load the rollover images directly in the body tags. I know it works because i'm using it on a site I designed for someone :)<br />
<body bgcolor="#FFFFFF" text="#663300" onLoad="MM_preloadImages('images/nav/info_f2.gif','images/nav/att_f2.gif','images/nav/bus_f2.gif','images/nav/gallery_f2.gif','images/nav/contact_f2.gif')" background="images/bg.jpg" link="#003399" vlink="#003399" alink="#CCCCCC"> <br />
<br />
------------------<br />
Visit Aftermath-Gaming.Network<br />
<!-- m --><a class="postlink" href="http://www.aftermath-gaming.net">http://www.aftermath-gaming.net</a><!-- m --><!--content-->Thank you,m but I cant seem to make this work.<br />
<br />
I am using a snippet of java for the rollovers, and im not sure what i am doing wrong, could someone take a look?<br />
<br />
also my page is now loaging, but "with errors" can anyone help me figure out why?<br />
<br />
I am getting so frustrated with this page!<br />
<br />
It would be truelyy appreciated.<br />
<br />
-Me-<br />
<br />
here is my code:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><br />
<META creator=The Syndicate Ltd><br />
<head><br />
<title>Nav</title><br />
<body text=#cc6600 bgColor=#000000 leftMargin=0 background="end.jpg" onLoad="MM_preloadImages('NEWBAROVER_r1_c1.jpg','NEWBAROVER_r1_c2.jpg','NEWBAROVER_r1_c3.jpg','NEWBAROVER_r1 _c4.jpg','NEWBAROVER_r1_c5.jpg','NEWBAROVER_r1_c6.jpg','NEWBAROVER_r1_c7.jpg',')" topMargin=0 marginwidth="0"><br />
<br />
<script language="JavaScript"><br />
<!--<br />
function MM_swapImgRestore() { //v3.0<br />
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a)&&x.oSrc;i++) x.src=http://www.htmlforums.com/archive/index.php/x.oSrc;<br />
}<br />
<br />
function MM_preloadImages() { //v3.0<br />
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();<br />
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)<br />
if (a.indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=http://www.htmlforums.com/archive/index.php/a;}}<br />
}<br />
<br />
function MM_findObj(n, d) { //v3.0<br />
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {<br />
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}<br />
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[n];<br />
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers.document); return x;<br />
}<br />
<br />
function MM_swapImage() { //v3.0<br />
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)<br />
if ((x=MM_findObj(a))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=http://www.htmlforums.com/archive/index.php/x.src; x.src=a[i+2];}<br />
}<br />
//--><br />
</script><br />
</head><br />
<left><br />
<TABLE cellSpacing=0 cellPadding=0 border=0><br />
<tr><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"port.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image1','','NEWBAROVER_r1_c1.jpg',1)"><img name="Image1" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c1.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"resource.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image2','','NEWBAROVER_r1_c2.jpg',1)"><img name="Image2" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c2.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"tuts.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image3','','NEWBAROVER_r1_c3.jpg',1)"><img name="Image3" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c3.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"proofs.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image4','','NEWBAROVER_r1_c4.jpg',1)"><img name="Image4" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c4.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"rates.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image5','','NEWBAROVER_r1_c5.jpg',1)"><img name="Image5" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c5.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"cont.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image6','','NEWBAROVER_r1_c6.jpg',1)"><img name="Image6" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c6.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"links.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image7','','NEWBAROVER_r1_c7.jpg',1)"><img name="Image7" border="0" src=http://www.htmlforums.com/archive/index.php/"nodropNEWBAR_r1_c7.jpg"></a></td><br />
<td NOWRAP><a href=http://www.htmlforums.com/archive/index.php/"main.htm" target="main" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image8','','NAVBAREND.jpg',1)"><img name="Image8" border="0" src=http://www.htmlforums.com/archive/index.php/"NAVBAREND.jpg" alt="Click here to return to Homepage"></a></td></tr><br />
</TABLE><br />
</center></body></html><!--content-->hick uup<!--content-->why aren't you using this<br />
<br />
<br />
<script><br />
//pre-load<br />
Image1 = new Image()<br />
Image1.src = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"graphdescrip.gif"<br />
<br />
Image2 = new Image()<br />
Image2.src = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"homedescrip1.gif"<br />
<br />
Image3 = new Image()<br />
Image3.src = <!-- m --><a class="postlink" href="http://www.htmlforums.com/archive/index.php/">http://www.htmlforums.com/archive/index.php/</a><!-- m -->"portdescrip.gif"<br />
</script><br />
<br />
as dreamweaver code is sparatic at best.<!--content-->
 
Back
Top