Response title
This is preview!
For my Jquery code I did something like that :
$(document).ready(function() { var $item = $('div.slide'), //Cache your DOM selector visible = 1, //Set the number of items that will be visible index = 0, //Starting index endIndex = ( $item.length / visible ) - 1; $('.flscrolld').click(function(){ if(index < endIndex ){ index++; $item.animate({'left':'-=300px'}); } }); $('.flscrolll').click(function(){ if(index > 0){ index--; $item.animate({'left':'+=300px'}); } }); });
© 2013 jQuery Foundation
Sponsored by and others.