Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Countdown Inaccuracy
08-17-2008, 05:12 PM #1
- Join Date
- Jun 2006
- Thanked 0 Times in 0 Posts
$Time = date("U", time());
$Countdown = (1219235100 - $Time) * 1000;
var countdown = <?php echo $Countdown; ?>; countdown = countdown - 17.92; countnanosec = Math.floor(countdown*1000000); countmicrosec = Math.floor(countdown*1000); countmillisec = Math.floor(countdown*1); countsec = Math.floor(countdown/1000); ... setTimeout("Countdown()", 1);
What am I missing? Suggestions would be greatly appreciated.
Last edited by coolcamo8642; 08-17-2008 at 10:17 PM.