<title>定时器</title>
<script type="text/javascript">
var attime;
function clock(){
var time=new Date();
//attime=time.substr(17,8) ;
attime=time.getHours()+":"+time.getMinutes()+":"+time.getSeconds();
document.getElementById("clock").value = attime;
}
var int=setInterval("clock()",1000)
</script>
</head>
<body>
<form>
<input type="text" id="clock" size="40" />
木子_123
相关分类