<머리>
여기 <스크립트>
$(document).ready(function(){
var speed = 1000;
var div_width = $("#list > div:first").width() parseInt($("# list > div:first").css("margin-left")) parsInt($("#list > div:first").css("margin-right"));
var offset = 220 ;
$(".button").click(function(){
id = $(this).attr("id").replace("button","");
var _length = -(id - 1) * div_width - 오프셋
$("#list").animate({left:_length "px"},speed)
});