Hey guys Attached is probably the final version of my Effect.Accordion. I don''t know how it compares to the previous Effect.Accoridon submitted. It still flickers a bit, however there is a hack which fixes the container''s height, so it doesn''t flicker the rest of the elements on the page. It''s also barely noticable in IE6. Any suggestions on how to fix this would be great. I think it''s a bug related to Effect.BlindUp/Down more than my code - the flicker only happens at the start and end of the effect, and it''s a flicker I see a lot. As before: <div id="accordion"> <div> <h3>Title</h3> <div> <p>Content</p> </div> </div> <div> <h3>Title</h3> <div> <p>Content</p> </div> </div> <div> <h3>Title</h3> <div> <p>Content</p> </div> </div> <div> <h3>Title</h3> <div> <p>Content</p> </div> </div> </div> <script> <!-- new Effect.Accordion("accordion"); --> </script> It fixes the height of all the panels to match the largest panel + 20px. If you have extremely large panels I suggest using overflow: auto and fixing a height on the div - that is "#accordion div div" - the script should pick up the changes just fine. I haven''t tried a scrollable panel, you should see the same results with using Effect.BlindUp on an element with overflow:auto and a fixed height. It''s also pretty resilient to applying the effect more than once. There are still some outstanding bugs - the smaller flicker, and you can''t use <div> within your <h3>. The h3 can be modifier by using the headingtag option: new Effect.Accoridon("accordion", { headingtag: "h2" }); There are also similar paneltag and bodytag options - I would leave them alone though. One more option: "initdisplay" decides the panel to initially display, starting from 0. My application required that all panels should be collapsable - clicking on the heading of a panel that was displayed would hide it, leaving all panels hidden. If this is a problem for someone I can "optionise" that behaviour. FYI my application required that panel headings and contents be edited with InPlaceEditor, that panels could be added and removed "Live", and that panel headings should be re-orderable, so my code was written so that it shouldn''t interfere with this. The only caveat is that dragging a panel headings would activate it when it was dropped. I couldn''t be arsed with patching s.a.u and keeping YET ANOTHER custom change, so I''m just living with it. The static function "Effect.Accordion.Reset" should be used when replacing the contents of the accordion, for example with Ajax.Updater. I don''t think my code supports "new Insertion.Bottom". Enjoy -Rob _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs