背景漸暗

將下列程式碼複製至<body 程式碼>的標籤之中

onUnload="startFade('0123456789abcdef')" bgcolor="#000000" text="#FFFFFF"

下列程式碼複製至<body>程式碼</body>之間

<SCRIPT Language="JavaScript">
<!--
count = 0;
col = "";

function startFade(fadeColor)
{
col = fadeColor;
setTimeout("fade()",200);
}

function fade()
{
if (count<16)
{
c=col.substring(count,count+1);
c+=c+c+c+c+c;
document.bgColor=c;
count++;
setTimeout("fade()",100);
}
}
startFade("fedcba9876543210");
// -->
</SCRIPT>
</script>