<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
#d{
position: relative;
top:-10px;
}
label{
margin-left:20px;
}
</style>
</head>
<script type="text/javascript">
var n=0;
function init(){
n++;
if (n==7)
n=1;
var img=document.getElementById("img");
img.src=n+".jpg";
setTimeout("init()",1000); //设置轮播时间
}
</script>
<body>
<div>
<img src="1.jpg" width="300" height="300">
<div id="d">
<label> 1 </label>
<label> 2 </label>
<label> 3 </label>
<label> 4 </label>
<label> 5 </label>
<label> 6 </label>
<label> 7 </label>
</div>
</div>
</body>
</html>
qq_冲哥_0