Results 1 to 2 of 2

Thread: Closing Open Menu Items

  1. #1
    Join Date
    Mar 2010
    Location
    Coventry UK
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Closing Open Menu Items

    1) Script Title: Accordion Menu

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

    3) Describe problem:
    I have the following set up as the first entry in my menu list.

    <h3 class="menuheader"><a href="http://www.myURL/Default.aspx" onClick="ddaccordion.collapseall('expandable'); return false">Home Page</a></h3>

    As you can see, it is not an expandable list, unlike the other entries in the menu.

    If I leave the onClick code out, the Home page is displayed but any other menu that is expanded remains expanded.

    If I include the onClick code, any other expanded menu is closed but the Home page does not display.

    Is it not possible to do both?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Here:
    Code:
    <h3 class="menuheader"><a href="http://www.myURL/Default.aspx" onClick="ddaccordion.collapseall('expandable');">Home Page</a></h3>
    Jeremy | jfein.net

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
  •