level 1
标题栏显示时间:
<html>
<head>
<title>
我的javascript网页
</title>
<script type="text/javascript">
function startTime()
{
t=setTimeout('startTime()',500)
var mydate=new Date
document.title="现在是"+mydate.toLocaleString()
}
</script>
</head>
<body onLoad="startTime()">
</body>
</html>
2009年10月18日 10点10分
5