Stop the presses! This looks to be a minor bug in this script which I just recently rewrote. I never tested it in frames and had no reason to think that it would be any different in frames than on a regular page. In fact, it isn't, except in IE if the startpos variable is set to 0. Easy to fix though. There was another minor bug fix to this script recently and, as this fix will use that part of the code, best to be sure that you have the most recent update. Look at your onresize function (it's at the end of the script), make sure that the last line is as shown here:
Code:
onresize=function(){
if (typeof motioncontainer!=='undefined'&&motioncontainer.filters){
motioncontainer.style.width="0";
motioncontainer.style.width="";
motioncontainer.style.width=Math.min(motioncontainer.offsetWidth, maxwidth)+'px';
}
menuwidth=crossmain.offsetWidth;
cross_scroll.style.left=startpos? (menuwidth-actualwidth)/startpos+'px' : 0;
}
Now, on to the fix for your current problem. Just above the onresize function we have this:
Code:
loadedyes=1
if (endofgallerymsg!=""){
creatediv();
positiondiv();
}
}
window.onload=fillup;
Make it like so:
Code:
loadedyes=1
if (endofgallerymsg!=""){
creatediv();
positiondiv();
}
if (document.body.filters)
onresize();
}
window.onload=fillup;
Bookmarks