//lettering $(".lett").lettering(); $(".lett_word").lettering("words"); //than $(".lett span , .lett_word span").wrap("
"); //lettering $("#w_sfbox-1564627146579 .ping_1>.w_fimgbox-001:nth-child(1)>.w_imgbox>img").wrap("
"); $("#wns_p2_bg").find("img:nth-child(1)").after("imgboxbg"); $("#wns_p2_bg").find("img:nth-child(2)").after("imgboxbg"); $("#wns_p2_bg").find("img:nth-child(3)").after("imgboxbg"); //图片转换成背景 function setimgcover() { $(".cc_img img").each(function() { var this_src = $(this).attr("src"); $(this).wrap("
"); $(this).css('display','none'); }); } setimgcover(); //图片转换成背景 $(function(){ //导航效果 $(".header .nav-wrap .list ul").width($(".header .nav-wrap .list li").length * 390); $(".header .nav-wrap .list li").hover(function() { $(this).find('.line,.intr,.more').stop().animate({ opacity: 1 }, 600); $(this).find('.box').stop().animate({ margintop: -10 }, 600); }, function() { $(this).find('.line,.intr,.more').stop().animate({ opacity: 0 }, 600); $(this).find('.box').stop().animate({ margintop: 0 }, 600); }); //导航点击展开 $(".header .nav-btn").click(function() { if ($(this).hasclass('hover')) { $(this).removeclass('hover'); $(".header .center,.header .city-sign,.header .log-link").fadein(500); $(".header .nav-wrap").stop().fadeout(600); $(this).find('.line-cen').stop().fadein(500); $(this).find('.line-top,.line-bot').stop().transition({rotate: 0}, 500); }else{ $(this).addclass('hover'); $(".header .center,.header .city-sign,.header .log-link").fadeout(500); $(".header .nav-wrap").stop().fadein(600); $(this).find('.line-cen').stop().fadeout(500); $(this).find('.line-top').stop().transition({rotate: 45}, 500); $(this).find('.line-bot').stop().transition({rotate: -45}, 500); } }); //导航滚动 $(".header .nav-wrap .list").mousemove(function(e){ var _w = $(window).width(), _liw = _w*0.11, _sw = _w*0.89, _ulw = $(".header .nav-wrap .list li").length * 390; var left=-1*((_ulw-_sw)/_w)*(e.pagex); $(this).children('ul').css({"left":left}); }); }); //关于我们 var set_o = "#wns_p2_l > div"; var set_m = "#wns_p2_bg > div"; var o_index; $(set_o).mouseenter(function() { $(this).siblings().removeclass("active"); $(this).addclass("active"); o_index = $(this).index(); $(set_m).siblings().removeclass("active"); $(set_m).eq(o_index).addclass("active"); }); //延迟时间 var delayi = 1; function count_delay() { if(delayi<300) { $(".trans_dl_1 span.char" + delayi).css("animation-delay",delayi*0.15 + "s"); delayi++; count_delay(); } } //关于我们 //执行 $(function(){ count_delay(); });