<form name=forms>
<p>网页已运行:</p>
<input type=text name=input size="12">
<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>
</form>