-
Setting the expanded index from JS in the onInti() function
1) Script Title:
Accordion Menu
2) Script URL (on DD):
http://www.dynamicdrive.com/dynamici...menu-urban.htm
3) Describe problem:
I am using the accordion menu script on a site I am building. However the main page is using a suckerfish type menu. Is there anyway to program the onInit function to set the expanded index correctly? I know which menu item should be active I just don't know what directive/variable I would have to set to change the active index.
Thanks,
Dan
-
-
I'm a little confused- are you asking how to select a particular menu in the "suckerfish" menu item using the oninit() event of the Accordion Menu, or an item within the Accordion menu itself? If the later, you can get a specific item within the accordion menu to expand when the page loads by calling the function expandone() (see this page) within the oninit() event handler.
DD Admin
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks