<html>
<head>
<title>中国站长天空-网页特效-背景特效-VBScript实现背景颜色随机变换</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<script language="vbscript">
sub bg()
document.body.style.backgroundColor=int(256*256*256*rnd)
end sub
</script>
<input type="button" onclick="bg()" value="背景颜色随机变换">
</body>
</html>
<head>
<title>中国站长天空-网页特效-背景特效-VBScript实现背景颜色随机变换</title>
<meta http-equiv="content-Type" content="text/html;charset=gb2312">
</head>
<body>
<!--把下面代码加到<body>与</body>之间-->
<script language="vbscript">
sub bg()
document.body.style.backgroundColor=int(256*256*256*rnd)
end sub
</script>
<input type="button" onclick="bg()" value="背景颜色随机变换">
</body>
</html>
文章来源:http://www.zzsky.cn/effect/content/832.htm