<style type="text/css">
<!--
.STYLE1 {
font-size: 27px;
color: #0000FF;
font-weight: bold;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.STYLE8 {
font-size: 36px;
font-weight: bold;
color: #0000FF;
}
.STYLE10 {font-size: 36px; color: #FF0000; font-weight: bold; }
.STYLE14 {font-family: "华文行楷"}
-->
</style>
<script type="text/JavaScript">
<!--
function MM_controlSound(x, _sndObj, sndFile) { //v3.0
var i, method = "", sndObj = eval(_sndObj);
if (sndObj != null) {
if (navigator.appName == 'Netscape') method = "play";
else {
if (window.MM_WMP == null) {
window.MM_WMP = false;
for(i in sndObj) if (i == "ActiveMovie") {
window.MM_WMP = true; break;
} }
if (window.MM_WMP) method = "play";
else if (sndObj.FileName) method = "run";
} }
if (method) eval(_sndObj+"."+method+"()");
else window.location = sndFile;
}
//-->
</script>
</head>
<body onLoad='setInterval ("BgFade()",20)'>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var i=0, bg=0, bgI=1, cNum=1;
var cArray = new Array(4);
var hex = new Array(30);
cArray[0]="66FF66";
cArray[1]="FF6600";
cArray[2]="3333FF";
cArray[3]="99FFFF";
cArray[4]="FFCC00";
hex[0]="00";
hex[1]="09";
hex[2]="11";
hex[3]="1A";
hex[4]="22";
hex[5]="2B";
hex[6]="33";
hex[7]="3C";
hex[8]="44";
hex[9]="4D";
hex[10]="55";
hex[11]="5E";
hex[12]="66";
hex[13]="6F";
hex[14]="77";
hex[15]="80";
hex[16]="88";
hex[17]="91";
hex[18]="99";
hex[19]="A2";
hex[20]="AA";
hex[21]="B3";
hex[22]="BB";
hex[23]="C4";
hex[24]="CC";
hex[25]="D5";
hex[26]="DD";
hex[27]="E6";
hex[28]="EE";
hex[29]="F7";
hex[30]="FF";
function BgFade() {
if (cNum==1) {FadeRed();}
else if (cNum==2) {FadeWhite();}
else {FadeBlue();}
}
function FadeRed() {
bg+=bgI;
if (bg>29) {bgI*=-1;}
else if (bg<1) {bgI*=-1;cNum=2;}
document.body.bgColor="#"+hex[bg]+"0000";
}
function FadeWhite() {
bg+=bgI;
if (bg>29) {bgI*=-1;}
else if (bg<1) {bgI*=-1;cNum=3;}
document.body.bgColor="#"+hex[bg]+hex[bg]+hex[bg];
}
function FadeBlue() {
bg+=bgI;
if (bg>29) {bgI*=-1;}
else if (bg<1) {bgI*=-1;cNum=1;}
document.body.bgColor="#0000"+hex[bg];
}
// End -->
</script>
这段是更换背景色的代码
我也不知道可以不 这是转的