これ以上苦労せずに、私はみんなにコードを投稿するだけです。
<script> $(function(){// highlight current/active link left navigation beance current current navigation $( 'ul.main-menu li a')。各(function(){var wo = windocation.location.href.substring(window.location.href.lastindexof( '/') + 1、windoc.location.location.location.location.location.location.location.location.location.location.href.href.href. ($(this).attr( 'href')==(wo + ".html"))) {$(this).parent()。addclass( 'active'); $(this).parents()。addclass( 'active'); $(this).parents( 'li') "syd" == wo)&&($(this).attr( 'href')== "dbs.html"))) {$(this).parent()。addclass( 'active'); $(this).parents()。addclass( 'active'); $(this).parents( 'li')。find( "i:first") Homepage*/$( "。main-menu a")。クリック(function(){//現在のliをactive $(this).find( "i:first")。 $(this).parent( 'li')。siblings( '。アクティブ ") Blings( "。アクティブ")。Removeclass( "Active")。子供( "ul")。slideup( 'fast'); $(this).next( 'ul')。上記は、現在のナビゲーションを決定するために編集者によって導入されたJavaScriptナビゲーションスクリプトです。私はそれが誰にでも役立つことを願っています。ご質問がある場合は、メッセージを残してください。編集者は、すべての人に時間内に返信します。 wulin.comのウェブサイトへのご支援ありがとうございます!