Here is the function that is already used to slowly move to the bottom:
Code:
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20)
}
You could make up a similar function:
Code:
function movedownfast(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100)){
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px";
movedownfast();
}
else if (ns4&&crossobj.top>=(contentheight*(-1)+100)){
crossobj.top-=speed;
movedownfast();
}
}
If you want this new function to run as soon as it can, find this function and add the red part:
Code:
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
movedownfast();
}
Bookmarks