View Full Version : collapse one when another is expanded

07-31-2008, 09:28 PM
1) Script Title: Simple Tree Menu

2) Script URL (on DD): http://www.dynamicdrive.com/
I don't remember what the original URL is. I've had it a while.
Here's where I have it in use, though:

3) Describe problem: I'd like to see if there's a way to collapse one menu when another is opened.
For example, at the above URL, if 'Books' is expanded and you click on the plus next to 'Organizers' to open it, 'Books' collapses.

Does anybody have any ideas?


08-01-2008, 04:57 AM
Hmm the Simple Tree menu (http://www.dynamicdrive.com/dynamicindex1/navigate1.htm) which you're using now doesn't support this easily unfortunately. There are a couple of similar scripts that do:

Switch Content script (http://www.dynamicdrive.com/dynamicindex17/switchcontent.htm)
Accordion Menu script (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu.htm)