Results 1 to 3 of 3

Thread: Expanding subheaders in accordion menu

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Expanding subheaders in accordion menu

    1) Script Title: Accordion Menu

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm

    3) Describe problem:

    I 'd like to have a subheader and its nested list expanded when a (nested) link inside it is clicked and the linked page is loaded. As it is, when a nested link is clicked and the linked page is loaded subheaders and their lists get collapsed although I can have the respective (to the loaded page) header -not the sub-header- expanded (by use of "?expandable=1").

    Thanks in advance.

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

    Default

    Well, the remote URL method of expanding a DIV can be used to expand not just a header, but a subheader inside it at the same time. The basic syntax is:

    Code:
    target.htm?headerclass=index1,index2,etc"
    But something like:
    Code:
    target.htm?expandable=4&subexpandable=0
    expands the 5th main header and the first sub header simultaneously. See the second example on this page for more info.
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you DD Admin.

    Very helpful.

    dirkbaros

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
  •