語法展示:: http://home.graffiti.net/xvft5gt6y/
<script language="JavaScript"> }
請用IE6.0或更新版本觀看語法特效展示
將以下程式碼複製,貼在<head>及</head>標籤之間。
<!--
var entered = new Date();
function DigitalTime()
{ if (!document.layers && !document.all) return
var now = new Date();
var seconds = Math.floor((now.getTime() - entered.getTime()) / 1000)
var minutes = Math.floor(seconds /60)
var hours = Math.floor(seconds /3600)
var seconds = seconds % 60
var minutes = minutes % 60
if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
//change font style, size and color here to your desire
digclock = "<FONT SIZE=6 FACE='arial' COLOR=BLACK><B></BR>" + minutes + ":" + seconds + "</B></FONT>";
if (document.layers)
{ document.layers.liveclock.document.write(digclock);
document.layers.liveclock.document.close();
} else if (document.all)
liveclock.innerHTML = digclock;
setTimeout("DigitalTime()",1000)
window.onload = DigitalTime;
-->
</script>
將以下程式碼複製,貼在<body>及</body>標籤之間。
<center>
<SPAN ID="liveclock"></SPAN>
</center>
留言列表