//服务网点 $('.branch-info:nth-child(1) .branch-top').addclass('on'); $(".branch-top").click(function () { $(this).toggleclass('on').parents('.branch-info').siblings().find('.branch-top').removeclass('on'); $(this).parents('.branch-info').find('.branch-list').slidetoggle().parents('.branch-info').siblings().find('.branch-list').slideup(); }); //人力资源 $('.recuite-info:nth-child(1) .recuite-top').addclass('on'); $(".recuite-top").click(function () { $(this).toggleclass('on').parents('.recuite-info').siblings().find('.recuite-top').removeclass('on'); $(this).parents('.recuite-info').find('.showd').click(function () { $(this).parents('.recuite-list').slideup(); $(this).parents('.recuite-info').find('.recuite-top').removeclass('on'); }) $(this).parents('.recuite-info').find('.recuite-list').slidetoggle().parents('.recuite-info').siblings().find('.recuite-list').slideup(); }); // hover $(function () { $(".mr_frbtnl img,.mr_frbtnr img").hover( function () { $(this).attr("src", $(this).attr("data-big")); }, function () { $(this).attr("src", $(this).attr("data-img")); } ); }); //返回顶部 $(function(){ $(window).scroll(function(){ var _top = $(window).scrolltop(); if(_top>300){ $('.return').fadein(600); }else{ $('.return').fadeout(600); } }); $(".return").click(function(){ $("html,body").animate({scrolltop:0},500); }); }); //wx $(".window dl a").hover(function () { $(this).children(".ewm-box").stop().animate({ width: "132px" }, 200); }, function () { $(this).children(".ewm-box").stop().animate({ width: "0" }, 200); }) jquery(function(){ function initbox() { if(!ismobile){ var headerh = $('.header-box').height(); $('.banner').css('height', (w_height - headerh)/2); $('.banner .slides').css('height', (w_height - headerh)/2); $('.banner .slides li').css('height', (w_height - headerh)/2); setimgmax($('.banner .bimg'), 1920, 459, w_width, (w_height - headerh)/2); }else{ } }; initbox(); jquery(window).resize(function () { initbox(); }); jquery(function(){ }); jquery(function(){ $('.banner .en,.banner .batxts b,.banner .batxts small,.banner .batxt span').addclass('transy'); var bannersider=jquery(".banner"); bannersider.flexslider({ animation: "fade", easing:"swing", slideshowspeed: 6000, animationspeed: 0, slideshow:true, animationloop:true, pauseonhover:false, directionnav:false, controlnav:true, start: function(slider) { jquery(".banne-list li").removeclass("on").eq(slider.currentslide).addclass("on"); jquery(".bamnline").addclass("load"); jquery('.banner .slides li').eq(slider.currentslide).addclass("imgin").siblings().removeclass("imgin"); }, after: function(slider) { jquery(".bamnline").addclass("load"); jquery(".banne-list li").removeclass("on").eq(slider.currentslide).addclass("on"); jquery('.banner .slides li').eq(slider.currentslide).addclass("imgin").siblings().removeclass("imgin"); }, before: function(slider) { jquery(".bamnline").removeclass("load"); } }); }); $('.business-list').owlcarousel({ items:5, slidespeed:2000, navigation: false, pagination: true, controls:true, itemsdesktop: [1280, 4], itemsdesktopsmall: [1024, 3], itemstablet: [750, 2], itemstabletsmall: false, itemsmobile: [380, 1] }); $('.sceclal-list').slick({ dots: false, infinite: true, autoplay:true, speed: 1000, slidestoshow: 3, slidestoscroll: 3, responsive: [ { breakpoint: 1280, settings: { autoplay:true, slidestoshow: 3, slidestoscroll: 3, infinite: false, dots: true } }, { breakpoint: 750, settings: { autoplay:true, slidestoshow: 1, slidestoscroll: 1 } }, { breakpoint: 480, settings: { autoplay:true, slidestoshow: 1, slidestoscroll: 1 } } ] }); $('.projects').hover(function(){ $(this).addclass('show').siblings().addclass('hiden'); },function(){ $(this).removeclass('show').siblings().removeclass('hiden'); }); $(".project-list").flexslider({ animation: "slide", direction:"horizontal", slideshow: true, slideshowspeed: 5000, animationspeed: 500, pauseonhover:true, directionnav:true, controlnav:false }); $(".hotnew-box").flexslider({ animation: "slide", direction:"horizontal", slideshow: true, slideshowspeed: 4000, animationspeed: 500, pauseonhover:true, directionnav:false, controlnav:true }); $(".project-mbile").flexslider({ animation: "slide", direction:"horizontal", slideshow:false, pauseonhover:true, directionnav:true, controlnav:false, start: function(slider) { jquery(".project-mbile li").removeclass("on").eq(slider.currentslide+1).addclass("on"); }, after: function(slider) { jquery(".project-mbile li").removeclass("on").eq(slider.currentslide+1).addclass("on"); }, }); $(".business .owl-carousel .owl-item").each(function(i,o){ $(this).css({"transition":"500ms "+(i*300)+"ms","-webkit-transition":"500ms "+(i*300)+"ms"}); }); $('.collecte-t a').hover(function(e){ e.preventdefault(); var index_=$(this).index(); $(this).addclass('on').siblings().removeclass('on'); $('.newindex .new-list').eq(index_).show().siblings().hide(); }); $(".magaze-sele").change(function(){ var indexnow= $(this).val(); $('.magaze .magaze-wr figure a').eq(indexnow).addclass('show').siblings().removeclass('show'); }); }); jquery().ready(function() { $(".intro-banner").slide({titcell:".hd ul",maincell:".bd ul",effect:"left",autopage:true,autoplay:3000, delaytime:500,prevcell:".prev",nextcell:".next",defaultindex:0}); });