2、前景文字:
< html >
< head >
< title >bgcolor< /title >
< meta http-equiv="content-type" content="text/html; charset=gb2312" >
< script language="javascript" >
< !--
//you can assign the initial color of the background here
r=255;
g=0;
b=0;
flag=0;
t=new array;
o=new array;
d=new array;
function hex(a,c)
{
t[a]=math.floor(c/16)
o[a]=c%16
switch (t[a])
{
case 10:
t[a]='a';
break;
case 11:
t[a]='b';
break;
case 12:
t[a]='c';
break;
case 13:
t[a]='d';
break;
case 14:
t[a]='e';
break;
case 15:
t[a]='f';
break;
default:
break;
}
switch (o[a])
{
case 10:
o[a]='a';
break;
case 11:
o[a]='b';
break;
case 12:
o[a]='c';
break;
case 13:
o[a]='d';
break;
case 14:
o[a]='e';
break;
case 15:
o[a]='f';
break;
default:
break;
}
}
function ran(a,c)
{
if ((math.random() >2/3c==0)&&c< 255)
{
c++
d[a]=2;
}
else
{
if ((math.random()< =1/2c==255)&&c >0)
{
c--
d[a]=1;
}
else d[a]=0;
}
return c
}
function do_it(a,c)
{
if ((d[a]==2&&c< 255)c==0)
{
c++
d[a]=2
}
else
if ((d[a]==1&&c >0)c==255)
{
c--;
d[a]=1;
}
if (a==3)
{
if (d[1]==0&&d[2]==0&&d[3]==0)
flag=1
}
return c
}
function disco()
{
if (flag==0)
{
r=ran(1, r);
g=ran(2, g);
b=ran(3, b);
hex(1,r)
hex(2,g)
hex(3,b)
document.fgcolor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag=50
}
else
{
r=do_it(1, r)
g=do_it(2,g)
b=do_it(3,b)
hex(1,r)
hex(2,g)
hex(3,b)
document.fgcolor="#"+t[1]+o[1]+t[2]+o[2]+t[3]+o[3]
flag--
}
if (document.all)
settimeout('disco()',0)
}
//-- >
< /script >
< /head >
< body onload="disco()" text="#000000" style="font:25pt 黑体" >赛迪网电脑应用
< /body >
< /html >
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器