我使用jCarousel創建滾動內容(按照此http://sorgalla.com/projects/jcarousel/)。但是我不想使用默認的next和previous按鈕,所以我想創建2個按鈕來處理click事件。 EX:我有2個超鏈接,如下所示:調用jquery jCarousel的next和prev函數?
<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函數綁定到上面的鏈接?
就像一個魅力。非常感謝。 –