JQuery second-level menu, displaying a small class at a time

Source: Internet
Author: User

JQuery second-level menu, displaying a small class at a time

In this example, there are two other associated cases. The demo addresses are 2.php and 3.php respectively.

Demo

XML/HTML Code
  1. Form
    • Horizontal CSS Menus
    • Vertical CSS Menus
    • Image CSS
    • Form CSS
  2. Navigation menu
    • CSS Gallery
    • Menu Gallery
    • Web Design News
    • CSS Examples
    • CSS Compressor
    • CSS Forums
  3. Paging
    • Free JavaScripts
  4. JavaScript Code
    1. <Script type = "text/javascript">
    2. Ddaccordion. init ({
    3. Headerclass: "expandable", // Shared CSS class name of headers group that are expandable
    4. Contentclass: "categoryitems", // Shared CSS class name of contents group
    5. Revealtype: "click", // Reveal content when user clicks or onmouseover the header? Valid value: "click", "clickgo", or "mouseover"
    6. Mouseoverdelay: 200, // if revealtype = "mouseover", set delay in milliseconds before header expands onMouseover
    7. Collapseprev: true, // Collapse previous content (so only one open at any time )? True/false
    8. Defaultexpanded: [0], // index of content (s) open by default [index1, index2, etc]. [] denotes no content
    9. Onemustopen: false, // Specify whether at least one header shocould be open always (so never all headers closed)
    10. Animatedefault: false, // shocould contents open by default be animated into view?
    11. Persiststate: true, // persist state of opened contents within browser session?
    12. Toggleclass: ["", "openheader"], // Two CSS classes to be applied to the header when it's collapsed and expanded, respectively ["class1", "class2"]
    13. Togglehtml: ["prefix", "", ""], // Additional HTML added to the header when it's collapsed and expanded, respectively ["position", "html1 ", "html2"] (see docs)
    14. Animatespeed: "fast", // speed of animation: integer in milliseconds (ie: 200), or keywords "fast", "normal", or "slow"
    15. Oninit: function (headers, expandedindices) {// custom code to run when headers have initalized
    16. // Do nothing
    17. },
    18. Onopenclose: function (header, index, state, isuseractivated) {// custom code to run whenever a header is opened or closed
    19. // Do nothing
    20. }
    21. })
    22. </Script>


      Address: http://www.freejs.net/article_daohangcaidan_146.html

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.