You could also try changing every instance of:
Code:
href="javascript:enlargeimage('some.gif')"
to:
Code:
href="javascript:if(loadedyes)enlargeimage('some.gif')"
With this approach and the one I will mention below, you would not need the previous modification I mentioned.
Yet another separate approach would be to make the gallery invisible until loaded. Put this code after the do not edit line in the script:
Code:
////NO NEED TO EDIT BELOW THIS LINE////////////
document.write('<style type="text/css">#motioncontainer {visibility:hidden;}<\/style>')
and this line after the loadedyes=1 statement in the fillup() function (addition red):
Code:
function fillup(){
if (iedom){
crossmain=document.getElementById? document.getElementById("motioncontainer") : document.all.motioncontainer
menuwidth=parseInt(crossmain.style.width)
mainobjoffset=getposOffset(crossmain, "left")
cross_scroll=document.getElementById? document.getElementById("motiongallery") : document.all.motiongallery
actualwidth=document.all? cross_scroll.offsetWidth : document.getElementById("trueContainer").offsetWidth
crossmain.onmousemove=function(e){
motionengine(e)
}
crossmain.onmouseout=function(e){
stopmotion(e)
showhidediv("hidden")
}
}
loadedyes=1
document.getElementById('motioncontainer').style.visibility='visible'
if (endofgallerymsg!=""){
creatediv()
positiondiv()
}
}
Bookmarks