igen
04-22-2008, 01:48 PM
1) Script Title:
Accordion
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
Say I have two menu bars with these links:
Menu0
link1: /blabla/index1.html
link2: /blabla/index2.html
link3: /blabla/index3.html
Menu1
link1: /blabla/index4.html
link2: /blabla/index5.html
link3: /blabla/911/index3.html
If I press menu1 link3, it expands as it should. But when I open menu0 and menu1 collapses, and then press menu0 link1, then menu1 will expand (even though I also put expandable=0).
This is because of the path in the cookie I guess?
Any way around it?
Because even though I use the "expanded" get variable, it will show the wrong menu.
Maybe I could manually read the expanded variable and manually add a javascript that expands the correct one? Because as it is now it doesn't work very well when links aren't from the same folders.
Very nice work with the script, I love it and it's just what I needed.... just need to fix the small bugs now :-)
Regards,
Mikael
Accordion
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamicindex17/ddaccordion.htm
3) Describe problem:
Say I have two menu bars with these links:
Menu0
link1: /blabla/index1.html
link2: /blabla/index2.html
link3: /blabla/index3.html
Menu1
link1: /blabla/index4.html
link2: /blabla/index5.html
link3: /blabla/911/index3.html
If I press menu1 link3, it expands as it should. But when I open menu0 and menu1 collapses, and then press menu0 link1, then menu1 will expand (even though I also put expandable=0).
This is because of the path in the cookie I guess?
Any way around it?
Because even though I use the "expanded" get variable, it will show the wrong menu.
Maybe I could manually read the expanded variable and manually add a javascript that expands the correct one? Because as it is now it doesn't work very well when links aren't from the same folders.
Very nice work with the script, I love it and it's just what I needed.... just need to fix the small bugs now :-)
Regards,
Mikael