做了一半不会做了.请高手指点.
<html>
<head>
<script language="javascript">
function update()
{
var hour=0;
var minute=0;
var second=0;
second++;
document.myform.myclock.value="您已经停留了"+hour+":"+minute+":"+second;
var myTime=setTimeout("update()",1000);
}
</script>
</head>
<body onLoad="update()">
<form name="myform"><div align="center">
<input name="myclock" type="text" value="" size=20>
</div>
</form>
</body>
</html>
[此贴子已经被作者于2007-4-9 22:20:27编辑过]