在<head></head>中加入下列代码

2.在<body>中加入下列代码

GDScript3
1 行
onload=startclock() 

3.在显示时间的位置插入下列代码,建议使用表格定位

代码片段
8 行
 
<form name=clock > 
<input name=thetime style="font-size: 9pt;color:#000000;border:0" size=12> 
</form> 
//只获得当前系统日期的函数 
<script language="JavaScript" type="text/javascript"> 
document.write(new Date().getYear()+"-"+(new Date().getMonth()+1)+"-"+new Date().getDate()); 
</script>