... and it looks as if you're running the effects in parallel, so div1 will close as it's being opened, i.e. no net effect.

Given your description, it sounds like you're looking for an accordion effect. There have been several working examples posted to this group in the past. Do a search.


TAG

On Jan 13, 2007, at 12:13 PM, Thomas Fuchs wrote:


You can do:

['array','of','ids'].each(function(e){ Effect.BlindUp(e) });

best,
thomas

Am 13.01.2007 um 20:02 schrieb [EMAIL PROTECTED]:


Hi,

I'm looking for an solution about how to use an effect on more than
one
div at a time... For example: i've got 10 div (div1, div2, etc) if I
click one of those divs I want any other opened div to close. I've
already to solve it by using arrays but it won't work.

<a onClick="Effect.BlindUp(alldivs); Effect.SlideDown
('div1')">Div1</a>

Thanks already,
Gert-Jan





>


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to