Results 1 to 2 of 2

Thread: Stupid Simple Help with a Dynamic Drive Script. The Accodion Menu

  1. #1
    Join Date
    Mar 2010
    Posts
    10
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Question Stupid Simple Help with a Dynamic Drive Script. The Accodion Menu

    Hi all, Please forgive my ignorence on this one. I'm supprised i can't figure it out. maybe it's the fact that I'm tired, probably not.

    Ok well here it is. i'm using this script all works fine and i've been able to install it and get it working.

    But, i can not figure out how to set a Submenu to auto expand on page load. Now it does have a single line of commenting in the JS on how to do this, but i'm not sure what to do, exactly. so any help from you all would be awesome.

    Like where do i insert the index id in the html or, do i not have to. anyways i can go over everything i've tried but it's all wrong, obviously, so instead i will just thank you guys in advance for your awesome help.

    Thanks,

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    I think you mean:

    Code:
    defaultexpanded: [], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    This is more fully explained on the index page for the script:

    http://www.dynamicdrive.com/dynamici...daccordion.htm

    defaultexpanded:

    Index(es) of content(s) that should be open by default in the format [index1, index2, etc], where 0=1st content, 1=2nd content etc. [] denotes no content should be open by default.
    So, for example, if you wanted the first one expanded, you would use:

    Code:
    defaultexpanded: [0], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    If you want the second and third ones expanded:

    Code:
    defaultexpanded: [1, 2], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

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
  •