直接上代码!
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#time,#p{font-size:200px;color:plum;}
</style>
</head>
<body>
<p id="time">99</p>
<script>
function countDown(){
var time = document.getElementById("time");
time.innerHTML = time.innerHTML-1;
time.style.color="#"+Math.round(Math.random()*0x1000000).toString(16);
}
setInterval("countDown()",1000);
document.bgColor="blueviolet";
</script>
</body>
</html>
主要使用了p标签和定时器。