我有这个代码
var toplamSlide = $(".glly_detail .glly_detail_option").length + 1;
for (var i = 1; i < toplamSlide; i++) {
$('.glly_detail_numbers').append('<div class="slick-item"><span>' + i + ' </span></div>');
}
$(".glly_detail").slick({
nextArrow: ".btn_slick_next",
prevArrow: ".btn_slick_prev",
slidesToShow: 1,
slidesToScroll: 1,
dots: false,
speed: 0,
swipe: false,
asNavFor: '.glly_detail_numbers',
});
$('.glly_detail_numbers').slick({
slidesToShow: 10,
slidesToScroll: 10,
asNavFor: '.glly_detail',
dots: false,
infinite: true,
swipe: false,
//mobileFirst: false,
focusOnSelect: true,
responsive: [{
breakpoint: 480,
settings: {
slidesToShow: 6
}
}
]
});
当我单击glly_detail
滑块的数字时,我想更改glly_detail_numbers
,所以我在脚本中添加了asNavFor:".glly_detail"
。但是,当我单击glly_detail
滑块箭头时,我不想更改glly_detail_numbers
。可以吗?
但是我不想仅在单击glly_detail_numbers滑块箭头(红色边框)时更改glly_detail。但是如果我单击glly_detail_numbers滑块的数量,则glly_detail滑块必须更改。
如果我删除asNavFor:'.glly_detail_numbers',它不会改变。或者,如果我删除asNavFor:'.glly_detail',则不会更改。但我不要这个。
当我单击glly_detail_numbers滑动箭头(红色边框)时,我不想更改glly_detail。
有可能吗?