腳本說明
:把如下代碼加入區域中:
<span id=liveclock style=position:absolute;left:
</span> (這裡可以調整時鐘的方位
<SCRIPT language=javascript>
<!
function show
return
var Digital=new Date()
var hours=Digital
var minutes=Digital
var seconds=Digital
var dn=
if(hours>
hours=hours
}if(hours==
hours=
if(minutes<=
minutes=
if(seconds<=
seconds=
//change font size here to your desire
myclock=
+seconds+
if(document
document
}else if(document
liveclock
setTimeout(
}
//>
</SCRIPT>
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/19667.html