Results 1 to 2 of 2

Thread: How to modify accordion menu script behaviour

  1. #1
    Join Date
    Jan 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Post How to modify accordion menu script behaviour

    1) Script Title: Accordion Menu script (v1.7.1)
    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...ordionmenu.htm

    3) Describe problem:

    First problem
    Here is menu based on the Bullet list: http://dzialam.pl/files/fundmenu/
    How to collapse expanded submenu(ie. news) by clicking on the "nonexpandable" category (like Strona glowna or Z dzieckiem w kinie)

    Second problem
    Menu based on the Glossy: http://dzialam.pl/files/glossy/menu.html
    Is possible to change expand direction? I moved right last expandable category (Komercyjne) by positioning but i dont know how to make expand from left to right.
    Final result I want to obtain is http://dzialam.pl/files/menu/menu.html
    Is possible to make it with accordion?
    If no, which script I should use to take this effect and keep accordion funcionality like page loading delay, preserving state of the contents within a browser session etc.?

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

    Default

    For 1), you'll want to look at invoking the collapseone() function manually. In this case, you might add something like the below event handler inside your sub menu container:

    Code:
    <ul class="categoryitems" onClick="ddaccordion.collapseone('groupname', 0)">
    
    <li><a href="#">Polityka</a></li>
    
    <li><a href="#">Kultura</a></li>
    
    <li><a href="#">Praca</a></li>
    
    <li><a href="#">Nasze akcje</a></li>
    
    <li><a href="#">Wydarzenia</a></li>
    
    </ul>
    Please see the documentation on this function for more info. For 2), there's no easy way to turn the menu into side expanding unfortunately. Horizontal Accordion may be closer to what you're looking for.
    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
  •