用javascript来实现
<html>
<head>
<title>显示时间</title>
<script language="javascript">
function Page_Load()
{
window.setTimeout("Page_Load()","1000");
var ShowTime=document.getElementById("ShowTime");
var myDate=new Date();
ShowTime.innerHTML=myDate.toLocaleString( );
}
</script>
</head>
<body onLoad="Page_Load();" >
<div id="ShowTime" ></div>
</body>
</html>