我是想这样的,当我载入页面的时候,在一分钟内随机显示10张图片,小弟资质鲁钝,请大哥们指点一二呀,小弟多谢了!!!!!
<HTML>
<HEAD>
<TITLE>i</TITLE>
</HEAD>
<BODY onLoad="showimage()">
<center>
<script language=″javascript″>
<!--
function showimage(){
imglink=new Date();
if(imglink.getSeconds()<6) {var thisimg="./images/a.jpg″;}
else if(imglink.getSeconds()<12) {var thisimg="./images/b.jpg″;}
else if(imglink.getSeconds()<18) {var thisimg="./images/c.jpg″;}
else if(imglink.getSeconds()<24) {var thisimg="./images/d.jpg″;}
else if(imglink.getSeconds()<30) {var thisimg="./images/e.jpg″;}
else if(imglink.getSeconds()<36) {var thisimg="./images/f.jpg″;}
else if(imglink.getSeconds()<42) {var thisimg="./images/g.jpg″;}
else if(imglink.getSeconds()<48) {var thisimg="./images/h.jpg″;}
else if(imglink.getSeconds()<54) {var thisimg="./images/i.jpg″;}
else if(imglink.getSeconds()<60) {var thisimg="./images/j.jpg″;}
document.write("<img src="+thisimg+">"
}
//-->
</script>