Log in

View Full Version : Glossy Accordion Menu Submenu open on pageload



seokidd
11-26-2008, 06:32 PM
1) Script Title: Glossy Accordion Menu

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

3) Describe problem: Its not really a problem more of a can I. I would like to have the menu open the submenu as a page loads. Example, If i am on the plans page, the menu will open the plans submenu by default. If I am on the benefits page it will open the benefits submenu by default..

I hope this is explained correctly. i just want to open a specific submenu based on the page that is loaded..

Thanks for all your help..

SeoKidd

ddadmin
11-26-2008, 08:12 PM
There's quite a few threads in general about getting a sub menu to open automatically based on the page the user is currently at. There is no "instant" way to do this- it really depends on finding some way on your own of matching the current page with the sub menu that is supposed to be open, then either setting the "defaultexpanded" parameter of your menu, or calling one of the Accordion Menu expand/contract methods (http://www.dynamicdrive.com/dynamicindex17/ddaccordion_suppliment.htm), to expand that sub menu.

yoonmi
02-05-2010, 06:44 PM
I'm am looking to do the same - I need to know where these other threads are so I can implement this concept. I need to have a sub-menu open on specific pages. I have the Accordian menu in a separate php file that is being included from the page. I can send variables using javascript if I knew the code. I'm having a hard time figuring out the "Taking advantage of the oninit() and onopenclose() event handlers" but I think this would work for me.

Thanks,
YoonMi