<html>
<head>
<title>现在几点了。。。。。。</title>
<style type="text/css">
body{
leftmargin:2px;
topmargin:2px;
color:#00435d;
font-size:12px;
}
</style>
<script language='javascript'>
function showTime()
{
var time=new Date();
var y=time.getFullYear();
var m=(time.getMonth() + 1)>9 ?(time.getMonth() + 1) : "0" + (time.getMonth() + 1);
var d=time.getDate()>9 ? time.getDate():"0"+time.getDate();
var h=time.getHours()>9 ? time.getHours():"0"+time.getHours();
var min=time.getMinutes()> 9 ? time.getMinutes() :"0"+time.getMinutes();
var s=time.getSeconds()> 9 ? time.getSeconds():"0"+time.getSeconds();
var mins=time.getMilliseconds();
//alert(y+"-"+m+"-"+d+" "+h+":"+min+":"+s+" "+mins);
var nowTime=document.getElementById("nowTime");
nowTime.innerText="现在时间:"+y+"-"+m+"-"+d+" "+h+":"+min+":"+s+" "+mins;
}
function interalSet()
{
showTime();
setTimeout('interalSet()',1);
}
</script>
</head>
<body onload="interalSet();">
<div id="nowTime" width="300" height="100"></div>
</body>
</html>