just change the value of seconds to your number and have a textbox with instance name theTime
seconds = 1000;
function formatTime(time) {
var h = Math.floor(time/3600)<10 ? "0"+Math.floor(time/3600) :
Math.floor(time/3600);
var m = (Math.floor((time/60)%60)<10) ? "0"+Math.floor((time/60)%60) :
Math.floor((time/60)%60);
var s = ((time%60)<10) ? "0"+(time%60) : (time%60);
return h+":"+m+":"+s;
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.