改良,加了分钟计时
<script type="text/javascript">
var num=0;
var fuh=":";
var min=0;
var i;
function startCount(){
document.getElementById('count').value=min+fuh+num;
num=num+1;
if(num==60)
{
num=0;
min+=1;
}
i=setTimeout("startCount()",1000);
}
function stopCount(){
clearTimeout(i);
}
</script>