并列的图片,在率新的时候,变换位置

      其他有趣的代码 2005-7-13 14:25
<script language="javascript">
var i = new Array(4);
i[0] = "http://www.blueidea.com/img/common/logo.gif";
i[1] = "http://www.blueidea.com/bbs/images/topic5.gif";
i[2] = "http://www.blueidea.com/bbs/images/reply5.gif";
i[3] = "http://www.google.com/images/logo_sm.gif";
var noinstr="5";
function showimg()
{var nn = Math.random();
nn = Math.floor(nn * 4);
if(noinstr.indexOf(nn)<0)
{document.write("<img src='"+i[nn]+"' width=40 height=40>");
noinstr=noinstr+nn;}
else
{showimg();}
}
for(j=0;j<4;j++)
{showimg();}
</script>
标签集:TAGS:
回复Comments() 点击Count()

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}