afterFinish:function(){ alert('finished') }
Am 09.10.2006 um 13:34 schrieb powtac:
>
> How can I start a second event after I moved a DIV with effect.move()?
> I use the function discribed here:
> http://wiki.script.aculo.us/scriptaculous/show/Effect.Move
>
> My code looks like:
>
> <script type="text/javascript">
> new Effect.Move(articleList,{ x: 100, mode: 'absolute', duration:1.5,
> afterFinish:alert('finished')});
> </script>
>
> <div id="articleList">
> asdf
> </div>
>
>
> afterFinish:alert('finished') comes when the effect starts, not when
> its finish!
>
> The reason for what I need this:
> I want to prevent other effect to start, before this move-effect has
> finished.
>
> powtac
>
>
> >
--
Thomas Fuchs
wollzelle
http://www.wollzelle.com
questentier on AIM
madrobby on irc.freenode.net
http://www.fluxiom.com :: online digital asset management
http://script.aculo.us :: Web 2.0 JavaScript
http://mir.aculo.us :: Where no web developer has gone before
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Spinoffs" 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/rubyonrails-spinoffs
-~----------~----~----~----~------~----~------~--~---