From: Doug M. <do...@cr...> - 2001-01-29 17:56:27
|
The following code is generated by Dream WEaver for roll-overs. I am firmly of the belief that the solution for the LoadPanel image = problem is in this code somewhere.. I'll take a crack at it later (If I haven't cracked myself yet) Code: function MM_findObj(n, d) { //v3.0 var p,i,x; if(!d) d=3Ddocument; = if((p=3Dn.indexOf("?"))>0&&parent.frames.length) { d=3Dparent.frames[n.substring(p+1)].document; n=3Dn.substring(0,p);} if(!(x=3Dd[n])&&d.all) x=3Dd.all[n]; for = (i=3D0;!x&&i<d.forms.length;i++) x=3Dd.forms[i][n]; for(i=3D0;!x&&d.layers&&i<d.layers.length;i++) = x=3DMM_findObj(n,d.layers[i].document); return x; } function MM_swapImage() { //v3.0 var i,j=3D0,x,a=3DMM_swapImage.arguments; document.MM_sr=3Dnew Array; = for(i=3D0;i<(a.length-2);i+=3D3) if ((x=3DMM_findObj(a[i]))!=3Dnull){document.MM_sr[j++]=3Dx; = if(!x.oSrc) x.oSrc=3Dx.src; x.src=3Da[i+2];} } |