html
<img id="radom_img" width="700" height="500" src="images/logo.gif" />
<script type="text/javascript">
setInterval(show,1000);//间隔时间
function show()
{
var number = Math.ceil(Math.random()*1);//有几张图片就乘以几du
document.getElementById("radom_img").src="images/logo.png";//随机显示的话可zhi以用dao随机函数来生成相zhuan应的图片名
}
script>
0条评论