<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<script language="javascript">
var myRed=0;
var myGreen=0;
var myBlue=0;
var ntime=1;
function myBBgColor()
{
if(ntime==1)
{
myRed++;
if(myRed>=255)
{
myRed=0;
ntime=2;
}
}
if(ntime==2)
{
myGreen++;
if(myGreen>=255)
{
myGreen=0;
ntime=3;
}
}
if(ntime==3)
{
myBlue++;
if(myBlue>=255)
{
myBlue=0;
ntime=1;
myRed=0;
myGreen=0;
myBlue=0;
}
}
document.bgColor="#"+tenTo16(myBlue)+tenTo16(myGreen)+tenTo16(myRed);
//alert("#"+tenTo16(myBlue)+tenTo16(myGreen)+tenTo16(myRed));
setTimeout("myBBgColor()",50);
}
function tenTo16(tenN)
{
if(tenN<16)
{
return "0"+ox16(tenN);
}
else
{
var ch1="";
var ch2="";
ch1=ox16(tenN%16);
ch2=ox16((tenN-tenN%16)/16);
return ""+ch2+ch1;
}
}
function ox16(x)
{
if(x==10)
return "A";
if(x==11)
return "B";
if(x==12)
return "C";
if(x==13)
return "D";
if(x==14)
return "E";
if(x==15)
return "F";
if(x<10)
return x;
if(x==0)
return "0";
}
</script>
</head>
<body onload="myBBgColor()">
</body>
</html>