//图片自己找哈
<!doctype html>
<html ng-app>
<head>
<meta content="charset=utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
<style type="text/css">
#banner_list{
margin: 10px auto;
width: 240px;
height: 118px;
overflow: hidden;
}
#banner_list>img{
width: 240px;
display: none;
}
</style>
</head>
<body>
<div id="banner_list">
<img src="imgs/1.jpg" style="display: block;">
<img src="imgs/2.jpg">
<img src="imgs/3.jpg">
<img src="imgs/4.jpg">
<img src="imgs/5.jpg">
</div>
</body>
<script src="jquery-2.1.1.min.js"></script>
<script type="text/javascript">
$.fn.scroll_imgs = function (){
var timer = 1;
var last;
var _this_children = $(this).children();
var len = _this_children.length;
setInterval(function(){
_this_children.eq(timer).show();
last = timer-1;
if(last==-1) last = len-1;
_this_children.eq(last).hide();
timer ++;
if(timer==len) timer = 0;
},1000);
}
$("#banner_list").scroll_imgs();
</script>
</html>