具体如下:
"">
#time
{
background-color:#eee;
}
function showtime()
{
var myDate = new Date();
document.getElementById("time").innerHTML = myDate.getHours()
+ "时" + myDate.getMinutes() + "分"
+ myDate.getSeconds() + "秒" ;
setTimeout("showtime()",1000);
}
更多信息请查看IT技术专栏