<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>时间日期篇--在背景上加时钟</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3132" name=GENERATOR></HEAD>
<BODY onload=bgclock()>
<SCRIPT language=javaScript>
function bgclock() {

thistime= new Date();
var years=thistime.getYear();
var months=thistime.getMonth()+1;
var dates=thistime.getDate();
var days=thistime.getDay();
var hours=thistime.getHours();
var minutes=thistime.getMinutes();
var seconds=thistime.getSeconds();

var dayname= new Array("星期日", "星期一", "星期二","星期三","星期四","星期五","星期六");

if (eval(hours) <10) {hours="0"+hours;}
if (eval(minutes) < 10) {minutes="0"+minutes;}
//if (seconds < 10) {seconds="0"+seconds;}

thistime =years+"年"+months+"月"+dates+"日 "+dayname[days]+" "+hours+":"+minutes+":"+seconds;

if(document.all) {
bgclocknoshade.innerHTML=thistime;
}

if(document.layers) {
document.bgclocknoshade.document.write("<div id='bgclocknoshade'>"+thistime+"</div>");
document.close();
}
var timer=setTimeout("bgclock()",200);
}

</SCRIPT>

<DIV id=bgclocknoshade></DIV></BODY></HTML>