Results 1 to 6 of 6

Thread: Need help on the CSS accordion vertical menu

  1. #1
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Question Need help on the CSS accordion vertical menu

    I was wondering if there is a way to make one of the accordion menu items stay expanded all the time when someone visits my website. In other words when I go to the website now the menu items with the + symbol stay collapsed until I click on the +. I'd like to have one expanded all the time when someone visits the website.

    Thanks!

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

    Default

    Are you talking about the Accordion Menu script on DD? Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.

  3. #3
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your reply ddadmin and I apologize for not reading the posting format.
    Script: Glossy Accordion Menu
    URL: http://www.dynamicdrive.com/dynamici...enu-glossy.htm

    Thanks for you time!

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

    Default

    Anyone???

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

    Default

    If you mean how to have all the headers of the menu expanded by default when the page loads, just specify this in the initialization code:

    Code:
    ddaccordion.init({
    	headerclass: "submenuheader", //Shared CSS class name of headers group
    	contentclass: "submenu", //Shared CSS class name of contents group
    	revealtype: "click", //Reveal content when user clicks or onmouseover the header? Valid value: "click" or "mouseover
    	collapseprev: false, //Collapse previous content (so only one open at any time)? true/false 
    	defaultexpanded: [0,1,2], //index of content(s) open by default [index1, index2, etc] [] denotes no content
    	onemustopen: false, //Specify whether at least one header should be open always (so never all headers closed)
    	animatedefault: false, //Should contents open by default be animated into view?
    	persiststate: false, //persist state of opened contents within browser session?
    Note the lines in red.

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

    indyrain (08-01-2008)

  7. #6
    Join Date
    Jul 2008
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help. That works great!
    Last edited by indyrain; 08-01-2008 at 11:59 PM.

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
  •