(
<script>
function clockon(bgclock)
{
var now = new Date();
var year = now
var month = now
var date = now
var day = now
var hour = now
var minu = now
var sec = now
var week;
month = month+
if(month<
if(date<
if(hour<
if(minu<
if(sec<
var arr_week = new Array("星期日"
week = arr_week[day];
var time = "";
time = year+"年"+month+"月"+date+"日"+week+""+hour+";"+minu+";"+sec;
if(document
{
bgclock
}
var timer = setTimeout("clockon(bgclock)"
}
</script>
(
<body onLoad="clockon(bgclock)">
<div id="bgclock" class="word_Green"></div>
</body>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20502.html