//banner var mySwiper1 = new Swiper('.banner', { speed:1200, loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, navigation: { nextEl: '.banner .swiper-button-next', prevEl: '.banner .swiper-button-prev', } }); //鼠标覆盖停止自动切换 mySwiper1.el.onmouseover = function(){ mySwiper1.autoplay.stop(); } //鼠标离开开始自动切换 mySwiper1.el.onmouseout = function(){ mySwiper1.autoplay.start(); } //新闻动态滚动图 var mySwiper2 = new Swiper('.news-scroll .swiper-container', { speed:1200, loop:true, centeredSlides: true, autoplay: { delay: 5000, disableOnInteraction: false, }, navigation: { nextEl: '.news-scroll .swiper-button-next', prevEl: '.news-scroll .swiper-button-prev', } }); //通知公告 var swiper3 = new Swiper('.notice-list .swiper-container', { loop:true, slidesPerView: 4, spaceBetween: 10, autoplay: { delay: 2500, disableOnInteraction: false, }, }); //友情链接 var swiper3 = new Swiper('.pbdbox .swiper-container', { loop:true, slidesPerView: 5, spaceBetween: 20, autoplay: { delay: 2500, disableOnInteraction: false, }, });