メニューの子カテゴリではなく、親アイテムのみを表示したい。ここで「情報」をクリックすると、ドロップダウン効果が表示されます: 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>