$(function(){ $('.banner').slick({ slide: ".item", autoplay: true, arrows: true, dots: false, infinite: true, easing: "easeinoutexpo", speed: 1000, autoplayspeed: 5000, pauseonhover: false, draggable: false, touchmove: false, responsive: [ { breakpoint: 1025, settings: { arrows: false, dots: true } } ] }).on('beforechange', function(event, slick, currentslide, nextslide){ $('.switch-line').css({width:0}).stop().animate({width:100+'%'},5800,'linear'); }); $('.switch-line').css({width:0}).stop().animate({width:100+'%'},4800,'linear'); $('.ba-nw-list').slick({ autoplay: true, vertical: true, speed: 800, dots: false, arrows: false, draggable:false }); $('.isn-pic').slick({ dots: true, arrows: false, draggable:false, autoplay: true, speed: 800, autoplayspeed: 5000 }); var step = 0; function changeixnews(){ $('.in-nav li').removeclass('act').eq(step).addclass('act'); $('.in-list li').hide().eq(step).show(); $('.in-more li').hide().eq(step).show(); }; changeixnews(); $('.in-nav li').click(function(){ step = $(this).index(); changeixnews(); }); $('.ixlink li').mouseenter(function(){ if(!ismobile){ var cindex = $(this).index(); $('.ixlink').removeclass('action-0 action-1 action-2 action-3'); $(this).parent().addclass('action-'+cindex); $('.ixlink .hide').removeclass('show'); $(this).find('.hide').addclass('show'); }else{ return; } }); $('.ixlink').mouseleave(function(){ $('.ixlink').removeclass('action-0 action-1 action-2 action-3'); $('.ixlink .hide').removeclass('show'); }); })