View Full Version : Expand All

09-08-2008, 10:53 AM
How does one go about expanding all panels within an accordion widget? Collapse all?

I would like to create an expand all close all button for an accordion; the tricky part is that I want to use an image to do it. One image that reverses its function once clicked. For example:


If you were to click on the smiley, all panels would open. With all panels open, click on the smiley again. All panels close.

09-09-2008, 01:57 AM
Hey Luke196...

Well, maybe the most easiest way ot create that with an image will be with the behavior "show/hide elements (DIVS).

You click the image and that image will hide and the panels will show, click again and the panels will hide and the image will apear.

To do this you need to create DIV's, one for the image and the other for the panels, that way you could create the effect.

09-09-2008, 09:48 AM
Any div tutorial recommendations?

09-09-2008, 12:46 PM
luke look in the help files, it wil got though some basics. I have a sneaking suspicion you're still at a 'just got dw' level :)

09-09-2008, 01:42 PM
You can Google through and search for DW behavior show-hide/elements....
another great tutorial www.lynda.com... also YouTube has a few... and of course here you can ask.