图片轮播

<div class="tupian">
<img src="qiye_images/aaa.png" class="lunbo"
style="display:block;"/>
<img src="qiye_images/bbb.png" class="lunbo"/>
<img src="qiye_images/ccc.png" class="lunbo"/>
</div>

.tupian{display:none;}

var n=0;
function show()
{
var img = $(".lunbo");
img.css("display","none");
img.eq(n).css("display","block");

if(n>=img.length-1)
{
n=0;
}
else
{
n++;
}
}
window.setInterval("show()",1500);

posted @ 2016-07-18 13:50  于超。  阅读(115)  评论(0编辑  收藏  举报