日期:2014-05-16 浏览次数:21464 次
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<script type="text/javascript" language="javascript">
var a=new Date();
setInterval("document.getElementById('time').innerHTML=a.getFullYear()+'年'+a.getMonth()+'月'+a.getDate()+'日 星期'+'日一二三四五六'.charAt(a.getDay());+a.getHours()+'点'+a.getMinutes()+'分'+a.getSeconds()+'秒'",1000);
</script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title></title>
</head>
<body>
<table width="100%" border="0">
<tr>
<td id="time" align="right"></td>
</tr>
</table>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<script type="text/javascript" language="javascript">
window.onload=function(){
setInterval(function(){
var a=new Date();
document.getElementById('time').innerHTML=a.getFullYear()+'年'+a.getMonth()+'月'+a.getDate()+'日 星期'+'日一二三四五六'.charAt(a.getDay())+a.getHours()+'点'+a.getMinutes()+'分'+a.getSeconds()+'秒';
}, 1000);
}
</script>
</head>
<body>
<table width="100%" border="0">
<tr>
<td id="time" align="right" />
</tr>
</table>
</body>
</html>