我正在使用 Bxslider :Bxslider,我正在寻找是否有办法移动我的滑块以显示特定项目(图像),我有 2 个滑块一个在另一个下方,这是我的代码使用 :
$(document).ready(function(){
slider = $('.bxslider').bxSlider({
pager: false,
speed: 1500,
captions: true,
minSlides: 3,
maxSlides: 12,
slideWidth: 480,
slideMargin: 0
});
$('.bxslider2').bxSlider({
pager: false,
controls: false,
minSlides: 3,
maxSlides: 12,
slideWidth: 115,
slideMargin: 0
});
$(".secondSlider").mouseover(function(){
/* I want to move the first slider to show the image that is hovered on the second slider*/
slider.(move slider one to the hovered image on the second slider) // Here is the line I want to fix.
});
});
<ul class="bxslider">
<li><img src="img/picture1.jpg" /></li>
<li><img src="img/picture2.jpg" /></li>
<li><img src="img/picture3.jpg" /></li>
<li><img src="img/picture4.jpg" /></li>
<li><img src="img/picture5.jpg" /></li>
</ul>
<ul class="bxslider2">
<li><img class="secondSlider" src="img/picture1.jpg" /></li>
<li><img class="secondSlider" src="img/picture2.jpg" /></li>
<li><img class="secondSlider" src="img/picture3.jpg" /></li>
<li><img class="secondSlider" src="img/picture4.jpg" /></li>
<li><img class="secondSlider" src="img/picture5.jpg" /></li>
</ul>
请问我该怎么做?