Results 1 to 3 of 3

Thread: Glossy Accordion Menu Help

  1. #1
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Glossy Accordion Menu Help

    1) Script Title: Glossy Accordion Menu

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

    3) Describe problem:
    I am working with Dynamic Drive's Glossy Accordion Menu and I am having trouble getting the expanding menu to close when I click on a header menu item that doesn't have an expanding menu. (Ex: My CSS Examples expanded menu won't close when I click on the Dynamic Drive tab. )

    Does anybody have any suggestions how I can get an expanded accordion menu to close when I click on a single header menu that will take me to another Website?

    Thanks for your help!
    Last edited by ddadmin; 08-12-2008 at 07:32 PM.

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

    Default

    You'll need to manually call the available functions for expanding/ collapsing a menu item if you're talking about menu items with no sub menus associated with them (ie: the "Dynamic Drive" item), as technically, they are not associated with the script in any way. You may do something like the below instead to manually collapse all the contents:

    Code:
    <a class="menuitem" href="http://www.dynamicdrive.com/" onClick="jQuery('.categoryitems').hide()">Dynamic Drive</a>
    where "categoryitems" should be the shared CSS class name of your contents. There's a similar discussion here: http://www.dynamicdrive.com/forums/s...d.php?p=154368
    DD Admin

  3. #3
    Join Date
    Aug 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you for the script. It does help collapse the expanded menus if I am linking to a page that will open in the parent window.

    Is there something I can do along the same lines that will collapse the expanded accordion menu if I target the menu items with no sub menus to open the associated link in a new window (target="_blank")?

    Thanks again for all of your help!

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
  •