',''] }).on('changed.owl.carousel', syncPosition); achome.owlCarousel({ center: true, items : 1, lazyLoad: true, autoplay: true, autoplayTimeout: 4500, autoplayHoverPause:true, loop: true, nav: true, dots: false, responsiveRefreshRate : 200, navText: ['',''], }).on('changed.owl.carousel', syncPosition); acmerkenslider.owlCarousel({ items:6, lazyLoad: true, slideSpeed : 1000, autoplay: true, autoplayTimeout: 3500, autoplayHoverPause: true, loop: true, responsive:{ 0:{ items:1, nav: false, center: true }, 600:{ items:3, dots: true, nav: true }, 1000:{ items:6, dots: true, nav: true } }, responsiveRefreshRate : 200, navText: ['',''], }).on('changed.owl.carousel', syncPosition3); acthumb.on('initialized.owl.carousel', function () { acthumb.find(".owl-item").eq(0).addClass("current"); }) .owlCarousel({ items : slidesPerPage, dots: false, nav: true, navText: ['',''], smartSpeed: 200, slideSpeed : 500, slideBy: slidesPerPage, //alternatively you can slide by 1, this way the active slide will stick to the first item in the second carousel responsiveRefreshRate : 100 }).on('changed.owl.carousel', syncPosition2); function syncPosition(el) { //if you set loop to false, you have to restore this next line //var current = el.item.index; //if you disable loop you have to comment this block var count = el.item.count-1; var current = Math.round(el.item.index - (el.item.count/2) - .5); if(current < 0) { current = count; } if(current > count) { current = 0; } //end block acthumb .find(".owl-item") .removeClass("current") .eq(current) .addClass("current"); var onscreen = acthumb.find('.owl-item.active').length - 1; var start = acthumb.find('.owl-item.active').first().index(); var end = acthumb.find('.owl-item.active').last().index(); if (current > end) { acthumb.data('owl.carousel').to(current, 100, true); } if (current < start) { acthumb.data('owl.carousel').to(current - onscreen, 100, true); } } function syncPosition2(el) { if(syncedSecondary) { var number = el.item.index; acbig.data('owl.carousel').to(number, 100, true); } } function syncPosition3(el) { if(syncedSecondary) { var number = el.item.index; acmerkenslider.data('owl.carousel').to(number, 100, true); } } acthumb.on("click", ".owl-item", function(e){ e.preventDefault(); var that = this; var number = $(that).index(); acbig.data('owl.carousel').to(number, 300, true); }); });
排三125前后关系双彩论坛 | 官方大发快三 | 公益彩票app苹果系统 | 购买体育彩票的app | 狗万APP下载 | 欧冠足球竞彩推荐 |