Indexhibit手风琴菜单
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Indexhibit手风琴菜单相关的知识,希望对你有一定的参考价值。
to make use of this snippet you have to update the jquery.js file in your ndxz-studio/site/js folder to a new version.
$(function() { /* Accordion Menu for Indexhibit uses jquery * * Created by G470 Jul 2011 */ /*** first hide all sub Elements ***/ $aswt = $("#menu .container ul li.section-title"); $aswt.nextAll().hide(); /*** cursor for the section title ***/ $aswt.css({'cursor':'pointer'}); /*** remove the next line if you don't want to show active menu by default ***/ $('#menu .container ul li.active').parent().children().show(); /*** click function for section title ***/ $aswt.click(function(){ if($(this).next().is(':visible')){$aswt.nextAll().hide(500); }else{ $aswt.nextAll().hide(500); $(this).nextAll().slideToggle(500); }; }); }); </script>
以上是关于Indexhibit手风琴菜单的主要内容,如果未能解决你的问题,请参考以下文章