That did the trick indeed :-), it was very simple actually :
new Effect.MoveBy('moveboxpurple', 100, 0, { queue: 'end' }).
That lets the next event start when the first one has finished.
Thank you very much.
Greets,
Bart
On 4 mei, 13:40, "T.J. Crowder" <[email protected]> wrote:
> Hi,
>
> I haven't done much with script.aculo.us' effects, but I suspect
> you're looking for effect queues[1].
>
> [1]http://wiki.github.com/madrobby/scriptaculous/effect-queues
>
> HTH,
> --
> T.J. Crowder
> tj / crowder software / com
> Independent Software Engineer, consulting services available
>
> On May 4, 11:25 am, bart issimo <[email protected]> wrote:
>
> > HI all,
>
> > I've got a little problem with an application I'm building. I want to
> > let images scroll down behind a frame with a transparent center. For
> > this I've built a div, in which I load the images dynamicly, using php
> > and mysql. With each click on the arrows 'up', or 'down' I let the div
> > move up or down, using the height of the image. That way one after the
> > other image appears into the transparent part of the image, almost
> > like in a jackpot.
>
> > The idea works, but there is one problem: when clicking on one of the
> > two arrows while the animation (the moving div) is working, it stops
> > the animation immediatly, and starts a new one. The result is that the
> > next image ends halfway into the transparent area.
>
> > My question now is, is there a way to pauze the onclick event's action
> > as long as the ongoing effect is still working?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---