Effect.toggle('d3','appear', {duration: .5});

The (optional) third parameter is a hash of effect options.

See some common options at
http://wiki.script.aculo.us/scriptaculous/show/CoreEffects

TAG

On Sep 14, 2006, at 9:37 AM, [EMAIL PROTECTED] wrote:

>
> I have the following code to toggle a basic appear of a div:
>
> <a href="#" onclick="Effect.toggle('d3','appear'); return
> false;">Toggle appear</a>
>
> I want to edit the rate in which the effect runs. I can't for the life
> of me figure it out. I would like to make the effect complete faster,
> like .5 seconds. I've tried to hunt through the effects.js, but have
> come up empty handed.
>
> Anyone done this?
> Thanks
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to