我正在創建自己的自定義內容滑塊,並想知道最好的方法是使用jQuery。jQuery滑塊幫助
我想要有兩個按鈕之前/之後。當用戶點擊下一個時,當前幻燈片將向左滑動並顯示新幻燈片。
我應該如何去做這個jQuery?我會使用一個插件,但在定製時它們非常煩人。
到目前爲止的代碼:
<!--Main slider content-->
<div class="contentslider_content" style=" float:left; width:890px; height:300px; border:1px solid #CCC; overflow:hidden;">
<div class="contentslider_slides slide_1" style=" float:left; width:890px; height:300px; background-color:#0F3"></div>
<div class="contentslider_slides slide_2" style=" float:left; width:890px; height:300px; background-color:#ccc"></div>
<div class="contentslider_slides slide_3" style=" float:left; width:890px; height:300px; background-color:#ccc"></div>
</div>
<!--Main slider content-->
<button class="next">Next</button>
<button class="previous">Previous</button>