PDA

View Full Version : CMotion Image Gallery II - lowest picture



Immi
02-14-2007, 10:13 PM
1) Script Title: CMotion Image Gallery II

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/cmotiongallery2.htm

3) Describe problem: Hi there, I have a question on "CMotion Image Gallery II". What do I have to do if I want this gallery to start up with the lowest (last) picture instead of the first at window startup? I guess somebody already asked that question but I can't find any solution for my problem in the forum. If there is any solution please post the link. I hope someone can help me out.
Thanks
Immi

jscheuer1
02-15-2007, 05:20 AM
Give this a shot (remove the red parts from script's current function fillup() as shown below):


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()
}
}

Immi
02-15-2007, 09:13 AM
Wow, its working perfectly! Thank you a lot.
Immi