Results 1 to 3 of 3

Thread: Help with Accordion Menu script (v1.3)?

  1. #1
    Join Date
    May 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default Help with Accordion Menu script (v1.3)?

    1) Script Title: Accordion Menu script (v1.3)

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...m?expandable=0

    3) Describe problem: Hello there, I would like to ask if it is possible that there will be no collapsed header? I mean, it will only allow one header to be expanded at a time but will not allow all the headers to be collapsed that there will be one header that will remain expanded. I hope you understand me. Thanks.


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

    Default

    Sure. Inside the .js file, try changing the line:
    Code:
    else{
    	ddaccordion.collapseit($(this), $subcontent, config, true) //Last Boolean value sets 'isclicked' parameter
    to instead:

    Code:
    else if ($(this).get(0)!=lastexpanded.$header.get(0)){
    	ddaccordion.collapseit($(this), $subcontent, config, true) //Last Boolean value sets 'isclicked' parameter

  3. The Following User Says Thank You to ddadmin For This Useful Post:

    Ricendithas (05-31-2008)

  4. #3
    Join Date
    May 2008
    Posts
    4
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Smile

    Quote Originally Posted by ddadmin View Post
    Sure. Inside the .js file, try changing the line:
    Code:
    else{
    	ddaccordion.collapseit($(this), $subcontent, config, true) //Last Boolean value sets 'isclicked' parameter
    to instead:

    Code:
    else if ($(this).get(0)!=lastexpanded.$header.get(0)){
    	ddaccordion.collapseit($(this), $subcontent, config, true) //Last Boolean value sets 'isclicked' parameter

    Thank you very much, it already works.

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
  •