Results 1 to 2 of 2

Thread: ddaccordion.js - several mains expanded

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

    Default ddaccordion.js - several mains expanded

    1) Script Title: ddaccordion.js

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex1/navigate2.htm

    3) Describe problem:

    Bear with me, novice...

    Have accodion.js set up and working fine. Only problem is that...click on 'Menu 1' and it expands. Great. Click on 'Menu 2' and it expands. Great although it also shrinks 'Menu 1'. Any way to keep all 'Main' menus expanded until a sub menu is selected?

    Menu 1
    Sub menu 1
    Sub menu 2

    Menu 2
    Sub menu 3
    Sub menu 4

    Think I should be looking at this line...

    if (config["collapseprev"] && expandedindices.length>1) //only allow one content open?

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

    Default

    Hmm the title of the script you mentioned (DD Accordion) and the link point to two different scripts. Assuming the former, simply set the following line in red to false:

    Code:
    ddaccordion.init({
    	headerclass: "mypets", //Shared CSS class name of headers group
    	contentclass: "thepet", //Shared CSS class name of contents group
    	revealtype: "mouseover", //Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
    	mouseoverdelay: 200, //if revealtype="mouseover", set delay in milliseconds before header expands onMouseover
    	collapseprev: false, //Collapse previous content (so only one open at any time)? true/false
    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
  •