$(function () { $('.banner>.slick').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: false, dots: true, autoplay: true }); $('.news-banner>.slick').slick({ slidesToShow: 1, slidesToScroll: 1, arrows: true, dots: false, autoplay: true }); $('.work-banner>.slick').slick({ slidesToShow: 3, slidesToScroll: 1, arrows: false, dots: false, autoplay: true, responsive: [ { breakpoint: 1024, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 568, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }); $('.edu-r>ul').slick({ autoplay: true, slidesToShow: 3, slidesToScroll: 1, arrows: false, dots: false, responsive: [ { breakpoint: 1200, settings: { slidesToShow: 2, slidesToScroll: 1, } }, { breakpoint: 1024, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 968, settings: { slidesToShow: 1, slidesToScroll: 1 } }, { breakpoint: 568, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }); $('.topic-c>ul').slick({ autoplay: true, slidesToShow: 4, slidesToScroll: 1, arrows: false, dots: false, responsive: [ { breakpoint: 1200, settings: { slidesToShow: 3, slidesToScroll: 1, } }, { breakpoint: 1024, settings: { slidesToShow: 2, slidesToScroll: 1 } }, { breakpoint: 768, settings: { slidesToShow: 1, slidesToScroll: 1 } }, { breakpoint: 480, settings: { slidesToShow: 1, slidesToScroll: 1 } } ] }); // // news轮播按钮传递 // $('.arrow-t').click(function(){ // $('.news-c').find('.slick-prev').click() // }) // $('.arrow-b').click(function(){ // $('.news-c').find('.slick-next').click() // }) $('.notice-c ul li a h2').mouseenter(function(){ $(this).siblings('p').stop(true, false).slideDown() $(this).parents('li').siblings().find('p').stop(true, false).slideUp() $(this).parents('li').find('a').stop(true, false).addClass("on") $(this).parents('li').siblings().find('a').stop(true, false).removeClass("on") }) });