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>
4

1 回答 1

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>
于 2013-02-14T16:57:32.257 回答