$(".products .side ul > li > .channel").click(function () { $(this).parent().siblings().removeClass("on"); $(this).parent().toggleClass("on"); }); $(".products .side ol > li > .channel > i").click(function () { $(this).parent().parent().siblings().removeClass("on"); $(this).parent().parent().toggleClass("on"); }); $(".products .side ol > li > .down > .channel > i").click(function () { $(this).parent().parent().siblings().removeClass("on"); $(this).parent().parent().toggleClass("on"); }); $(".products .side .title i").click(function () { $(this).toggleClass("on"); $(this).parent().next().slideToggle(); }); $(".footer .bd h3 i").click(function () { $(this).parent().parent().siblings().removeClass("on"); $(this).parent().parent().toggleClass("on"); }); $(".m_nav").click(function () { $(this).toggleClass("cross"); $(".ws-wap-menu").toggleClass("on"); }); $(".ws-wap-menu ul>li >i").click(function () { $(this).parent("li").siblings().removeClass("on"); $(this).parent("li").toggleClass("on"); }); $(".ws-wap-menu h4 i").click(function () { $(this).parent().parent().siblings().removeClass("on"); $(this).parent().parent().toggleClass("on"); }); $(".ws-wap-menu .dropdown ol li i").click(function () { $(this).parent().siblings().removeClass("on"); $(this).parent().toggleClass("on"); }); $(".dialog .close").click(function () { $(".mask").hide(); $(".dialog").hide(); }); $(".loginbtn").click(function () { $(".mask").show(); $(".dialog1").show(); }); $(".resterbtn").click(function () { $(".mask").show(); $(".dialog1").show(); }); $(".forget").click(function () { $(".password").show(); }); $(".tabtitle li").click(function () { //閫氳繃 .index()鏂规硶鑾峰彇鍏冪礌涓嬫爣锛屼粠0寮€濮嬶紝璧嬪€肩粰鏌愪釜鍙橀噺 var _index = $(this).index(); //璁╁唴瀹规鐨勭 _index 涓樉绀哄嚭鏉ワ紝鍏朵粬鐨勮闅愯棌 $(this) .parent() .next(".tabcontent") .find(".tabbox") .eq(_index) .show() .siblings() .hide(); //鏀瑰彉閫変腑鏃跺€欑殑閫夐」妗嗙殑鏍峰紡锛岀Щ闄ゅ叾浠栧嚑涓€夐」鐨勬牱寮 $(this).addClass("on").siblings().removeClass("on"); }); $(".totop").click(function () { $("body,html").animate({ scrollTop: 0 }, 500); return false; }); $(".header .dropdown .flex ol li a").on('mouseenter', function(){ $(this).parent().siblings().removeClass("on"); $(this).parent().toggleClass("on"); });