Results 1 to 2 of 2

Thread: Accordion Content script: Open the first header by default.

  1. #1
    Join Date
    Nov 2008
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Accordion Content script: Open the first header by default.

    1) Script Title: ddaccordion.js

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

    3) Describe problem: I have this script on a number of pages, but what happens is if there is a link the second header to another page, when the other page opens the second header is open by default.

    I do not want this, how can I have the first header open by default everytime a page opens, even if a link from the second header opens another page.

    Thank you.

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

    Default

    Just disabled persistence when you call ddaccordion.init():

    Code:
    	persiststate: false, //persist state of opened contents within browser session?
    DD Admin

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

    monshinejack (02-24-2009)

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
  •