这只是<>DEMO:
<><>><>><>><>>>><>>>><>>>>><>>>>><>>>><>>>><>>>><>><>>><>>><>>>>><>>>>>><>>>>>>>><>>>>>><>>>>>>>><>>>>>><>>>>>>>>><>>>>>><>>>>>><>>>>>><>>>>>>><>>>>>>>>>>>>><>>>>>>>>>>>>>>>>>>>>>>><>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
<div id="parent">
<div id="wrapper">
<div id="left">window 1</div>
<div id="right">window 2</div>
</div>
</div>
<div id="paginator"><span id="prev">Previous</span><span id="next">Next</span></div>
<><><>:>>>>>
#parent {
width: 850px;
overflow: hidden;
padding: 10px;
height: 320px;
border: 1px solid #f00
}
#wrapper div {
width: 400px;
border: 1px solid #ccc;
height: 300px;
display:inline-block;
margin: 10px
}
#paginator {
margin: 10px;
display: block
}
#paginator span {
width: 30px;
padding: 5px;
margin: 10px;
background: #1f1f1f;
color: #fff;
}
<><>>>>[><>>>>>>>
$(function() {
$( #next ).click(function() {
$( #wrapper ).append($( <div>window 3</div><div>window 4</div> )); // you can add div using other way
$( #wrapper ).animate({
marginLeft: -=860px
},
500, linear );
});
$( #prev ).click(function() {
$( #wrapper ).animate({
marginLeft: +=860px
},
500, linear );
});
});