Results 1 to 2 of 2

Thread: Setting the expanded index from JS in the onInti() function

  1. #1
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •