【发布时间】:2011-09-19 05:28:41
【问题描述】:
我使用 jCarousel 创建滚动内容(关注此http://sorgalla.com/projects/jcarousel/)。但是我不想使用默认的下一个和上一个按钮,所以我想创建 2 个按钮来处理点击事件。例如:我有 2 个这样的超链接:
<script>
jQuery(document).ready(function() {
// Initialise the first and second carousel by class selector.
// Note that they use both the same configuration options (none in this case).
jQuery('#scrollArea').jcarousel({
scroll: 10
});
</script>
<a>NEXT</a>
<a>PREV</a>
<div id="scrollArea">
<!-- CONTENT HERE -->
</div>
如何将 next 和 prev 函数绑定到上述链接?
【问题讨论】:
标签: jquery function click jcarousel next