$(function(){ $('.detail .img > ul.img1').slick({ infinite: true, slidesToShow: 1, arrows: false, fade: true, asNavFor: '.detail .img > ul.img2' }); $('.detail .img > ul.img2').slick({ infinite: true, slidesToShow: 3, asNavFor: '.detail .img > ul.img1', centerMode: true, focusOnSelect: true, arrows: false, variableWidth: false }); /* $('#mainimg ul').slick({ infinite: true, slidesToShow: 1, arrows: false, height:535, autoplay: true, autoplaySpeed: 7000, speed: 700, fade: true, pauseOnFocus:false, pauseOnHover:false, pauseOnDotsHover:false, responsive: [{ breakpoint: 769, settings: { variableWidth: false, centerMode: false, }, }] }); */ $(".detail .img span.next").on('click',function(){ $('.detail .img > ul.img1').slick('slickNext'); }); $(".detail .img span.prev").on('click',function(){ $('.detail .img > ul.img1').slick('slickPrev'); }); }); $(window).on('load',function(){ }); $(window).on('resize',function () { }); $(window).on('orientationchange', function(){ });