+function(){ //主体第一部分中间的切换效果 $(".main1-m-t>div").mouseenter(function(){ $(".main1-m-t>div").removeclass("div-hover") $(this).addclass("div-hover"); var dd=this.id+1; $(".main1-m-b").removeclass("show"); $("#"+dd).addclass("show"); }); //主题第一部分右边的切换效果 $(".main1-r-t>div").mouseenter(function(){ $(".main1-r-t>div").removeclass("div-hover") $(this).addclass("div-hover"); var ee=this.id+1; $(".main1-r-b").removeclass("show"); $("#"+ee).addclass("show"); }); //产品中心部分得切换效果 $(".m2-t").mouseenter(function(){ var dc=this.id+1; $(".m2-t>span").removeclass("f31"); $(".m2-t>span").removeclass("f21"); $(".m2-t>span").removeclass("f11"); $(".m2-t").removeclass("m2-hover") $(this).addclass("m2-hover"); var dc=this.id+1; $(this).children("span").addclass(dc); $(".m2-b").removeclass("show"); $("#"+dc).addclass("show"); }); //栏目上hover变色功能 $(".lists").mouseenter(function(){ $(this).children("b").css("color","#256c9b"); $(this).children("span").css("color","#256c9b"); }); $(".lists").mouseleave(function(){ $(".lists").children("b").css("color","#666"); $(".lists").children("span").css("color","#888"); }); }()