bueno ya modifique el script, ahi te lo paso para que lo sustituyas
Código:
var currentsec=0; // initilize variables
var currentmin=60; // to zero
var currentmil=59;
var keepgoin=false; // keepgoin is false
function timer(){
if(keepgoin){
currentmil+=-1; // add incretement
if (currentmil==0){ // if miliseconds reach 10
currentmil=59; // Change miliseconds to zero
currentsec+=-1; // and add one to the seconds variable
}
if (currentsec==0){ // if seconds reach 60
currentsec=59; // Change seconds to zero
currentmin+=-1; // and add one to the minute variable
}
Strsec=""+currentsec; // Convert to strings
Strmin=""+currentmin; // Convert to strings
Strmil=""+currentmil; // Convert to strings
if (Strsec.length!=2){ // if seconds string is less than
Strsec="0"+currentsec; // 2 characters long, pad with leading
} // zeros
if (Strmin.length!=2){ // Same deal here with minutes
Strmin="0"+currentmin;
}
document.display.seconds.value=Strsec // displays times
document.display.minutes.value=Strmin; // here
document.display.milsecs.value=Strmil;
setTimeout("timer()", 100); // waits one second and repeats
}
}
function startover(){ // This function resets
keepgoin=false; // all the variables
currentsec=0;
currentmin=0;
currentmil=0;
Strsec="60";
Strmin="00";
Strmil="00";
}
suerte =]