scrollLeft IS scrollRight. Sort of. All it does is set the amount of horizontal scroll. If you set it to zero then it will be all the way left. If you set it to something greater than zero then it will move to the right!
As far as making it go in increments, you would have to get the current scrollLeft distance and then subtract 200.
$(".leftArrow").click(function () {
var leftPos = $('.innerWrapper').scrollLeft();
$(".innerWrapper").animate({scrollLeft: leftPos - 200}, 800);
});
$(".rightArrow").click(function () {
var leftPos = $('.innerWrapper').scrollLeft();
$(".innerWrapper").animate({scrollLeft: leftPos + 200}, 800);
});
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…