'
<form name=forms>
<p><font class=p2 color=red> 您在本站停留了</font> </p>
<p>
<input type=text name=input size=10>
<script language=javascript>
var second=0;
var minute=0;
var hour=0;
idt=window.setTimeout("interval();",1000);
function interval(){
second++;
if(second==60){second=0;minute+=1;}
if(minute==60){minute=0;hour+=1;}
document.forms.input.value=hour+"时"+minute+"分"+second+"秒";
idt=window.setTimeout("interval();",1000);
}
</script>
</p>
</form>
红色的代码为什么要写2遍才行.写一句不行呢?为什么呢?