PDA

View Full Version : Cmotion Image Gallery - Scroll on pageload?



kovali
05-13-2005, 10:00 PM
Hi, is it possible to start scrolling the images (right>left) automatically on pageload, then controlling direction and speed with mouseover (what it does now already)?

If so, can anyone tell me how to do this? THX

Dubious
06-20-2005, 09:35 PM
I would really like an answer to this question too... I'm trying to figure it out myself and will let you know if I figure it out.

jscheuer1
06-21-2005, 06:05 AM
Find this at the end of the script (motiongallery.js):
positiondiv()
}
}
window.onload=fillupMake it look like this:
positiondiv()
}
scrollspeed=1
moveleft()
}
window.onload=fillup

Dubious
06-21-2005, 10:59 PM
hmmmm, I tried your code but it didn't seem to do anything...

http://www.happybrigade.com/cmotion/cmotion.html

pepito
06-22-2005, 12:24 AM
Funny page Dubious.

In a previous post called "about Cmotion Gallery" I was asking for the same question.

For me the trick given by John really works. I have changed something more because I wanted that when the mouse is left out then the cmotion continues in moving. I have changed:

crossmain.onmouseout=function(e){
stopmotion(e)
showhidediv("hidden")
}


For this:

crossmain.onmouseout=function(e){
scrollspeed=1
showhidediv("hidden")
}



You can verify it at http://www.pintorcastanyer.com

exactly at http://www.pintorcastanyer.com/MUBAG.htm


bye

jscheuer1
06-22-2005, 04:38 AM
Glad you like, pepito. To Dubious, since your page's initial position apparently is already all the way to the left, try this:


positiondiv()
}
scrollspeed=1
moveright()
}
window.onload=fillup

Dubious
06-23-2005, 08:09 PM
that's just the body of the page... for the record the page with all the bells and whistles is http://www.happybrigade.com/cmotion