PDA

View Full Version : CMotion Image Gallery II questions auto scroll?



sorion808
06-29-2011, 02:37 AM
is there a way to make is automatically scroll when you load a page?

http://www.dynamicdrive.com/dynamicindex4/cmotiongallery2.htm

vwphillips
06-29-2011, 07:26 AM
function fillup(){
if (iedom){
crossmain=document.getElementById? document.getElementById("motioncontainer") : document.all.motioncontainer
menu_height=parseInt(crossmain.style.height)
mainobjoffset=getposOffset(crossmain, "top")
cross_scroll=document.getElementById? document.getElementById("motiongallery") : document.all.motiongallery
actualheight=cross_scroll.offsetHeight

crossmain.onmousemove=function(e){
motionengine(e)
}

crossmain.onmouseout=function(e){
stopmotion(e)
showhidediv("hidden")
}
}
if (window.opera){
cross_scroll.style.top=menu_height-actualheight+'px'
setTimeout('cross_scroll.style.top=0', 10)
}
loadedyes=1
if (endofgallerymsg!=""){
creatediv()
positiondiv()
}
moveup();
}

sorion808
06-30-2011, 03:41 PM
thanks for reply

but

where to I put that exactly?

vwphillips
07-01-2011, 07:49 AM
add the red line to the existing code