Results 1 to 2 of 2

Thread: Switch Content Script II Start Collapsed?

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

    Question Switch Content Script II Start Collapsed?

    1) Script Title: Switch Content Script II (icon based)

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

    3) Describe problem: I am using Demo 1 of the above script but want all the sections to be closed upon first arriving on the page.

    It happens on Demo 2 but i am using Demo 1 but cannot find out which section to change so all the sections start closed. I'm sure its there in the instructions below but i cannot find the appropriate section in the javascript.

    I love the script just want it to start all collapsed.

    Many thanks for anyhelp

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

    Default

    Just remove the line:

    Code:
    faq.defaultExpanded(0) //Set 1st content to be expanded by default
    from the first demo, which causes no content to be expanded by default (aka: all is closed).

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
  •