jquery(function() { function initbox() { w_width = jquery(window).width(); w_height = jquery(window).height(); }; initbox(); jquery(window).resize(function() { initbox(); }); $('.banner__switch').on('init', function(event, slick, currentslide, nextslide) { $(".banner__item").first().removeclass("slick-current"); settimeout(function() { $(".banner__item").first().addclass("slick-current"); }, 200); }); $(".banner__switch").slick({ centerpadding: '0', autoplayspeed: 5000, speed: 1500, arrows: false, dots: true, infinite: true, autoplay: true, fade: true, pauseonhover: false, focusonselect: true, }).on('beforechange', function(event, slick, currentslide, nextslide) { }); $(".news__tab").slick({ centerpadding: '0', autoplayspeed:4000, speed:800, arrows: true, dots: false, infinite: true, autoplay: true, pauseonhover:true, focusonselect: true, vertical:true }); $(".dynamic__left").slick({ centerpadding: '0', autoplayspeed:4000, speed:500, arrows: false, dots: true, infinite: true, autoplay: true, fade: true, pauseonhover:true, focusonselect: true, }); $(".news__btn2 span").on("click",function(){ $(this).addclass('active').siblings().removeclass('active'); $(".party__tops .checkmore .chamorein").eq($(this).index()).show().siblings().hide(); $(".party__info").eq($(this).index()).fadein().siblings().hide(); }); $(".news__btn2 span").bind("mouseenter",function(){ $(this).addclass('active').siblings().removeclass('active'); $(".party__tops .checkmore .chamorein").eq($(this).index()).show().siblings().hide(); $(".party__info").eq($(this).index()).fadein().siblings().hide(); }); $('.engineerli li').hover(function() { $(this).addclass('show').siblings().addclass('hiden'); }, function() { $(this).removeclass('show').siblings().removeclass('hiden'); }); $(".project__bann").slick({ centerpadding: '0', autoplayspeed:4000, speed:800, arrows: false, dots: true, infinite: true, autoplay: true, pauseonhover:true, focusonselect: true, }); jquery(function() { jquery('.trailer').click(function() { video.load({ vcontainer: 'videobox', //视频容器 vfimg: jquery(this).attr("data-video-image"), //视频地址 vfiles: jquery(this).attr("data-video-url"), //视频缩略图(封面) isautoplay: 'true' }); jquery(".vwrap").fadein(); }); }); });