<html>
<head>
<script language="javascript">
var hour=45
var minute=0
var second=0
function clockShow(){
second=second-1;
if (second<0)
{
second=59;
minute=minute-1;
}
if (minute<0)
{
minute=59;
hour=hour-1;
}
if (second==1)
{
document.form1.submit()
}
document.myform.myclock.value=hour+":"+minute+":"+second;
var myTime = setTimeout("clockShow()",1000);
}
</script>
</head>
<body onLoad="clockShow()">
<form NAME="myform">
<INPUT type="text" name="myclock" >
</form>
<p> </p>
<form name="form1" method="post" action="http://www.baidu.com">
<input type="text" name="textfield">
<input type="submit" name="Submit" value="提交">
</form>
<p> </p>
</body>
</html>
javasprint 在线考试计时器
最新推荐文章于 2021-10-28 22:06:14 发布