Zitat Zitat
Original geschrieben von Freezy
Warum in Java?

Ich glaub Chockwise wird mir da zustimmen wenn ich sage: 'Mach`s in PHP' ... zu meinen Besten zeiten habe ich das auch noch hinbekommen (mit viel Hilfe)

*tread weiter reicht*
Jop, da hat Fuzzy recht.
JS stinkt, PHP rulez.
http://www.openconcept.on.ca/guide-countdown.phtml

UPDATE: Ich hab gesehen das man bei den variationen auf der Seite keine Stunden, Minuten und Sekundengenaue Angabe machen kann, also hier eine leichte Abänderung:
PHP-Code:
<? 
$sek = 1; // Sekunde des Countdowns
$mints = 1; // Minute des Countdowns
$std = 1; // Stunde des Countdowns
$day = 1; // Day of the countdown 
$month = 1; // Month of the countdown 
$year = 2010; // Year of the countdown 

// mktime is the marked time, and time() is the current time. 
$target = mktime($std,$mints,$sek,$month,$day,$year); 
$diff = $target - time(); 

$days = ($diff - ($diff % 86400)) / 86400; 
$diff = $diff - ($days * 86400); 
$hours = ($diff - ($diff % 3600)) / 3600; 
$diff = $diff - ($hours * 3600); 
$minutes = ($diff - ($diff % 60)) / 60; 
$diff = $diff - ($minutes * 60); 
$seconds = ($diff - ($diff % 1)) / 1; 

printf("There are $days days, $hours hours, $minutes minutes, $seconds seconds until the target date and time"); 
?>
Habs nicht getestet, aber 's schaut gut und richtig aus.