[英]Add Previous and Next to slider to JS
This slider is working great: 此滑块效果很好:
http://pastebin.com/BxN8vbAt http://pastebin.com/BxN8vbAt
One thing I want to add is a Prev and Next 我要添加的一件事是上一个和下一个
Anyone know how to make the Prev/Next links work properly?: 有谁知道如何使上一个/下一个链接正常工作?:
<ul>
<li><a href="#">Prev</a></li>
<li><a href="#">Opens Slide 1</a></li>
<li><a href="#">Opens Slide 2</a></li>
<li><a href="#">Opens Slide 3</a></li>
<li><a href="#">Next</a></li>
</ul>
*Resolved *解决
Add class link-prev
and class link-next
to your previous and next links. 将class link-prev
和class link-next
到您的上一个和下一个链接。
<a href="#" class="link-prev">Prev</a>
<a href="#" class="link-next">Next</a>
And to make a pager use the class switcher
on your ul. 为了使传呼机使用ul上的类switcher
。 You will not be able to have your previous and next links in the ul however. 但是,您将无法在ul中获得上一个和下一个链接。
<ul class="switcher"></ul>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.