$(document).ready(function(){ var ishava=0; $("ul.hc-pos li").hover(function(){ var aa=$(this).hasClass("on"); if(aa==true){ ishava=1; }else{ ishava=0; } $(this).addClass("on"); $(this).find("i").stop().animate({left:"0"},300,function(){ $(this).stop().animate({top:"0",height:"93px"},300); }) },function(){ if(ishava==0){ $(this).find("i").stop().animate({top:"46px",height:"1px"},300,function(){ $(this).stop().animate({left:"-135px"},300); }) $(this).removeClass("on"); } }) var re=function(){ var hd=parseInt($(window).height()); var wd=parseInt($(window).width()); $(".nw-banner").css({height:wd/(1920/380)+"px"}); } re(); $(window).resize(function(){ re();}); var nwnas=0; $(".nw-col .swiper-slide a").hover(function(){ var aa=$(this).hasClass("act"); if(aa==true){ nwnas=1; }else{ nwnas=0; } $(this).addClass("act"); $(this).find("i").stop().animate({width:"52px",marginLeft:"-26px"},300) },function(){ if(nwnas==0){ $(this).find("i").stop().animate({width:"0",marginLeft:0},300) $(this).removeClass("act"); } }) $(".nw-list").hover(function(){ $(this).find(".nwl-hx").stop().animate({width:"100%"},400) },function(){ $(this).find(".nwl-hx").stop().animate({width:"0"},400) }) /*17鍙戝睍鍘嗙▼2*/ $('.icon-xia').click(function(){ $('.lszcList').css('height','auto'); $(this).hide(); }); })