只要在<body></body>中都可以
淘宝杜琨
给你一个动态的时间,刚写的.
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<script>
function st()
{
nd=new Date();
f1.tm.value=nd.getHours()+":"+nd.getMinutes()+":"+nd.getSeconds();
setTimeout("st()",1000);
}
</script>
</head>
<body onLoad="st()">
<form name="f1" method="post" action="a2.htm">
<input type="text" name="tm" readonly
style="width:200px;height:50px;font-size:50px ; font-family:黑体">
</form>
</body>
</html>