views:

314

answers:

1

I'm trying to figure out a way to display a simple countdown that displays 1:00:00 whereby 1 = minutes, 00 = seconds, and 00 = milliseconds.

I've found loads of jQuery countdowns on the interwebs, but none of the contain the ability to display milliseconds natively, and I really don't want to dig through thousands of lines of code to try and find a way to hack it in there myself.

Is this something that would be pretty easy to whip up?

I'm also hoping to have the ability to add a callback to the end of the countdown (0:00:00) so that when it finishes, I can run another function.

+3  A: 

This is going to sound a bit off the cuff, but if you make a small animated GIF that runs through ten random sets of two digits ten times a second, your users will never know the difference, and you won't have to worry about what you're going to do to your CPU load by trying to count down milliseconds in a web page.

Robert Harvey
I found a way to do it, and you were absolutely right... Adding milliseconds nearly KILLED my computer. Thanks for the tip.
Josh