我有一个Jssor画廊,在选项中有活动的自动播放。当我将鼠标放入画廊时,自动播放停止。没错。我也有一个灯箱来查看真实大小的图像,但当我打开灯箱时,后面画廊中的图像发生了变化。我希望当灯箱打开时,背景画廊也会暂停。当在lightbox中传递图像时,甚至可以更改项目。有可能吗?谢谢。
发布于 2018-11-30 20:36:51
谢谢你Jssor。
//Pause the gallery when we access the Lightbox
$('#gallery_img1').click(function(){
jssor_1_slider.$Pause();
});
//Go to the next image in the gallery when you pass in Lightbox
$('#next-button').on('click', function(){
if (jssor_1_slider.$CurrentIndex() < (jssor_1_slider.$SlidesCount()-1)){
jssor_1_slider.$Next();
}
});
//Go to the previous image in the gallery when passing in Lightbox
$('#previous-button').on('click', function(){
if (jssor_1_slider.$CurrentIndex() > 0){
jssor_1_slider.$Prev();
}
});
https://stackoverflow.com/questions/53480808
复制相似问题