2013-02-14 50 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