<style>
*{margin:0px;padding:0px;}
.none{display:none;}
</style>
<span class="tu">
<a><img src="./01.jpg" alt=""></a>
<a class="none"><img src="./02.jpg" alt=""></a>
<a class="none"><img src="./03.jpg" alt=""></a>
<a class="none"><img src="./04.jpg" alt=""></a>
<a class="none"><img src="./05.jpg" alt=""></a>
<a class="none"><img src="./06.jpg" alt=""></a>
<a class="none"><img src="./07.jpg" alt=""></a>
</span>
<script>
var length = $('.tu').children().length-1; //length从1开始。而eq从0开始。都定义为0开始。
var img = 0;
setInterval(function(){
id = img++;
$('.tu').children().eq(id).show().siblings().hide();
if(id == length){
img = 0;
}
},1500);
</script>