在head 部分添加如下代码:
<SCRIPT language=javascript author=Gewell><!--
function initArray(){for(i=0;i<initArray.arguments.length;i++)
this[i]=initArray.arguments[i];}var today=new Date();hrs=today.getHours();min=today.getMinutes
();sec=today.getSeconds();clckh=""+((hrs>12)?hrs-12:hrs);
clckm=((min<10)?"0":"")+min;clcks=((sec<10)?"0":"")+sec;clck=(hrs>=12)?"Afternoon":"Morning";var stnr="";var
ns="0123456789";var a="";
//-->
</SCRIPT>
在Body 部分添加如下代码:
<SCRIPT language=javascript><!--
function getFullYear(d){//d is a date object
yr=d.getYear();if(yr<1000)
yr+=1900;return yr;}document.write("<table width=400>");//don't delete this line
document.write("</table>"); // don't delete this line
//-->
</SCRIPT>
function getFullYear(d){//d is a date object
yr=d.getYear();if(yr<1000)
yr+=1900;return yr;}document.write("<table width=400>");//don't delete this line
document.write("<TR><TD VALIGN=TOP><P></TD><TD>"+clck+":) "+today+"<P></TD></TR>");
document.write("</table>"); // don't delete this line
//-->
</SCRIPT>