Without further ado, I will just post code to everyone.
<script>$(function () {//highlight current / active link left navigation to determine the current active navigation $('ul.main-menu li a').each(function () {var wo = window.location.href.substring(window.location.href.lastIndexOf('/') + 1, window.location.href.lastIndexOf('.'));if ($(this).attr('href') == (wo + ".html")) {$(this).parent().addClass('active');$(this).parents().addClass('active');$(this).parents('li').find("i:first").toggleClass("glyphicon-minus");$(this).parents('ul').slideDown();}elseif (("dxs" == wo || "syd" == wo)&&($(this).attr('href')=="dbs.html")) {$(this).parent().addClass('active');$(this).parents().addClass('active');$(this).parents('li').find("i:first").toggleClass("glyphicon-minus");$(this).parents('ul').slideDown();}});/*** begin menu on the left side of the homepage*/ $(".main-menu a").click(function () {//Set the current li to active $(this).find("i:first").toggleClass("glyphicon-minus");});$(".main-menu a").click(function () {//Replace the add-minus icon $(this).parent('li').siblings('.active").find("i:first").toggleClass("glyphicon-minus");//alert($(this).index());//Remove click styles of other navigations and collapse $(this).parent('li').si blings(".active").removeClass("active").children("ul").slideUp('fast');$(this).next('ul').slideToggle('fast');$(this).parent('li').addClass('active');});/********************* end menu on the left side of the home page*/})</script>The above is the JavaScript navigation script introduced by the editor to determine the current navigation. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to everyone in time. Thank you very much for your support to Wulin.com website!