<HTML>
<HEAD>
<TITLE>屏幕</TITLE>
<Script Language="JavaScript">
a=new Array();
function RunTime()
{
for(i=0;i<6;i++)
a[i]=parseInt(Math.random()*16+1);
ColorStr="#"+fun(a[0])+fun(a[1])+fun(a[2])+fun(a[3])+fun(a[4])+fun(a[5]);
document.bgColor=ColorStr;
ID =setTimeout("RunTime()",1000);
}
function fun(num)
{
if(a>=10)
return a-10+'A';
else
return num;
}
ID =setTimeout("RunTime()",1000);
</Script>
<body>
</HEAD>
</BODY>
</HTML>
评论