javascript代码实例教程-jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类

发布时间:2019-02-02 发布网站:脚本宝典
脚本宝典收集整理的这篇文章主要介绍了javascript代码实例教程-jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类脚本宝典觉得挺不错的,现在分享给大家,也给大家做个参考。
小宝典致力于为广大程序猿(媛)提供高品质的代码服务,请大家多多光顾小站,小宝典在此谢过。

jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类

本例有另外2个关联案例,演示地址分别为2.php,3.php

javascript代码实例教程-jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类

演示

XML/HTML Code
  1. 表单

    • Horizontal CSS Menus
    • Vertical CSS Menus
    • Image CSS
    • Form CSS
  2. 导航菜单

    • CSS Gallery
    • Menu Gallery
    • Web Design News
    • CSS Examples
    • CSS ComPressor
    • CSS Forums
  3. 分页

  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 should be open always (so never all headers closed)
    10. aniMATEdefault: false, //Should 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>


      原文地址:http://www.freejs.net/article_DAOhangcaidan_146.html

      觉得可用,就经常来吧! 脚本宝典 欢迎评论哦!&nbsp;@L_777_5@,巧夺天工,精雕玉琢。小宝典献丑了!

      脚本宝典总结

      以上是脚本宝典为你收集整理的javascript代码实例教程-jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类全部内容,希望文章能够帮你解决javascript代码实例教程-jQuery 二级菜单,一次显示一个小类 鼠标点击显示小类所遇到的问题。

      如果觉得脚本宝典网站内容还不错,欢迎将脚本宝典推荐好友。

      本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
      如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。