简体   繁体   English

修改滑块(www.basic-slider.com)以显示上一张和下一张幻灯片

[英]Modify slider (www.basic-slider.com) to show previous and next slide too

I'm quite new to jQuery and I integrated this slider (www.basic-slider.com) in my website. 我是jQuery的新手,我在我的网站上集成了这个滑块(www.basic-slider.com)。 I would like to know if there is a way to make it show the previous and next image as well as the current image in the same frame. 我想知道是否有办法让它显示上一个和下一个图像以及同一帧中的当前图像。 I mean to make 3 images visible instead of just one. 我的意思是让3个图像可见,而不是只有一个。 Any help would be appreciated. 任何帮助,将不胜感激。 Thank you. 谢谢。

The slider slides through different list items, so you can add multiple images to one slide: 滑块滑过不同的列表项,因此您可以将多个图像添加到一张幻灯片:

<div id="my-slideshow">
    <ul class="bjqs">
        <li><img src="image1.png"><img src="image2.png"><img src="image3.png"></li>
        <li><img src="image4.png"><img src="image5.png"><img src="image6.png"></li>
    </ul>
</div>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM