Results 1 to 3 of 3

Thread: Accordion Menu wont close all by default

  1. #1
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Accordion Menu wont close all by default

    1) Script Title: Accordion Bullet script

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

    3) Describe problem: I want all menus to be closed upon opening the website, but whatever I do, the first menu with subcategories (About Us) expands by default. Ive tried persistance on and off, and default expanded is set to 0

    Im using JS v1.2.6 and viewing in IE7

    Heres the test site: http://www.kms-cbs.com/home.htm


    Any help much appreciated.

    Thanks

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

    Default

    Looking at your source, you should have the following parameters changed to the below values:

    Code:
    	defaultexpanded: [], //index of content(s) open by default [index1, index2, etc]. [] denotes no content
    	persiststate: false, //retain state of menu (open / closed) within browser session when opening new page?
    Everything else should remain the same.
    DD Admin

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

    carterj (11-06-2008)

  4. #3
    Join Date
    Apr 2005
    Posts
    11
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Problem solved - many thanks

    We had an erroneous [0] in the defaultexpanded instead of just []

    Kind Regards

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
  •