2013-02-14 51 views
0

我只想看到父项,而不是我的菜单中的子类。 当您点击“信息”时,您可以看到下拉效果:http://ntm.at/r0sa/ 我只想看到“信息”,而不是子类别。我该如何禁用? 我的侧边栏的代码是:取消激活下拉效果

<div id="left-col"> 

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> 

<script type="text/javascript" src="http://ntm.at/r0sa/wp-content/plugins/nextgen-gallery/js/ngg.slideshow.min.js?ver=1.06"></script> 

<script type="text/javascript"> 

$(document).ready(function(){ 
    $("#ngg-slideshow-1-116-1").nggSlideshow({id: 1,fx:"fade",width:320,height:240,domain: "http://ntm.at/r0sa/",timeout:10000}); 
    $("li.page_item").click(function(evt){ // trigger 

     if($(evt.target).parent().children('ul').size() == 0) 
     return true; 

     $(this).children("ul").slideToggle("fast"); // blendet beim Klick auf "dt" die nächste "dd" ein. 
     $(this).children("a").toggleClass("closed open"); // wechselt beim Klick auf "dt" die Klasse des enthaltenen a-Tags von "closed" zu "open". 
     evt.preventDefault(); 
     evt.stopPropagation(); 
    }); 
}); 

</script> 
+0

代码? – 2013-02-14 16:45:48

+0

我真的不能在该网站上看到任何效果。提供自包含代码示例代替链接到完整站点也更好。 – millimoose 2013-02-14 16:46:36

+0

是否要隐藏所有项目的子类别仅用于INFO – Devjosh 2013-02-14 16:51:37

回答

0

这是你

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js"></script> 

<script type="text/javascript" src="http://ntm.at/r0sa/wp-content/plugins/nextgen-gallery/js/ngg.slideshow.min.js?ver=1.06"></script> 

<script type="text/javascript"> 

$(document).ready(function(){ 
    $("#ngg-slideshow-1-116-1").nggSlideshow({id: 1,fx:"fade",width:320,height:240,domain: "http://ntm.at/r0sa/",timeout:10000}); 
}); 

</script> 
你想知道删除OT就在子菜单整个菜单中未使用的行的
+0

所以,我解决这个问题,是我的错。解决了,谢谢! – Rosa 2013-02-14 18:28:40