reference https://github.com/pupunzi/jquery.mb.scrollable
Note: use class name to trigger javascript
1. Final Result
2. Code
<html>
<head>
<link href="https://raw.github.com/pupunzi/jquery.mb.scrollable/master/css/mb.scrollable.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script type="text/javascript" src="https://raw.github.com/pupunzi/jquery.mb.scrollable/master/inc/mbScrollable.js"></script>
<script type="text/javascript">
$(function(){
$("#myScroll").mbScrollable({
width:700,
elementsInPage:1,
elementMargin:2,
shadow:"#999 2px 2px 2px",
height:"auto",
controls:"#controls",
slideTimer:600,
autoscroll:true,
scrollTimer:4000
});
});
</script>
</head>
<body>
<div id="myScroll">
<div class="scrollEl" style="background-color:#9999ff">1</div>
<div class="scrollEl" style="background-color:#cc9900">2</div>
<div class="scrollEl" style="background-color:#660066">3</div>
<div class="scrollEl" style="background-color:#009966">4</div>
<div class="scrollEl" style="background-color:#6600ff">5</div>
<div class="scrollEl" style="background-color:#9999ff">6</div>
<div class="scrollEl" style="background-color:#33cc00">7</div>
<div class="scrollEl" style="background-color:#cc00cc">8</div>
<div class="scrollEl" style="background-color:#009999">9</div>
</div>
<div id="controls">
<div class="first">first</div><div class="prev">prev</div>
<div class="next">next</div><div class="last">last</div>
<div class="pageIndex"></div>
<div class="start">start</div><div class="stop">stop</div>
</div>
</body>
</html>