
謝謝回覆;不過我較喜歡
簡單清爽的
跑秒畫面就好了,所以iGoogle是最好的,
不過缺點是,12小時制的不是24小時制的。
不過終於找到了語法,還是
24小時制ㄋ、
YA
顯示年月日星期+時間顯示
日期顯示語法
<script language="JavaScript"><!--
today=new Date();
function initArray(){
this.length=initArray.arguments.length
for(var i=0 ; i < this.length ; i++)
this[i+1]=initArray.arguments[i] }
var d=new initArray("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
document.write(
"<font color=#3D7878><span style=font-size:9pt>",
"",
today.getYear(),
" 年 <font color=#804000>",
today.getMonth()+1,
" 月 ",
today.getDate(),
" 日 <font color=#C600C6>",d[today.getDay()+1],
"");
--></script>
時間顯示語法
<span class="bold">
<SCRIPT language="JavaScript">
<!--
document.write("<span id='clock'></span>");
var now,hours,minutes,seconds,timeValue;
function showtime(){
now = new Date();
hours = now.getHours();
minutes = now.getMinutes();
seconds = now.getSeconds();
timeValue = (hours >= 12) ? "" : "";
timeValue += ((hours > 12) ? hours : hours) + ":";
timeValue += ((minutes < 10) ? "0" : "") + minutes + ":";
timeValue += ((seconds < 10) ? "0" : "") + seconds + "";
clock.innerHTML = timeValue;
setTimeout("showtime()",100);
}
showtime();
-->
</SCRIPT>
</span>
善用
最少的資源完成後的感覺
無價
