View Full Version : Can Accordian Menu Script Handle Multi-Levels?

04-09-2010, 05:41 PM
1) Script Title: Accordion Menu script (v1.7.1) -- Bullet List version

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm

3) Describe problem: I need to set up a two-tier menu using the + and - images like the DD Accordion Menu Bullet Style uses. The idea is:

[-] Top-Level Section 1
[+] Sub-Section 1-1
[-] Sub-Section 1-2
Item 1-2-1
Item 1-2-2
Item 1-2-3
[+] Sub-Section 1-3
[+] Sub-Section 1-4
[+] Sub-Section 1-5
[+] Top-Level Section 2
[+] Top-Level Section 3
[+] Top-Level Section 4
Can this be done, and if so, how do I modify the code to do it? I'll be happy to share code once working if anyone else would find it useful.

Jim Hollomon

04-09-2010, 08:36 PM
Yep, take a look at the 2nd example on this page (http://www.dynamicdrive.com/dynamicindex17/ddaccordionmenu-bullet.htm). Basically you treat each sub menu level as a new instance of Accordion Menu.