henry33 Posted April 30, 2008 Report Share Posted April 30, 2008 Hallo, hat jemand ne Idee wie ich bei den Sonderangeboten einen ablaufenden Countdown (Beispiel noch 2 Tage 12 Stunden 35 Sekunden) anzeigen lassen kann. Diverse Countdown Scripte gibt es ja, die meisten als Java. Kann mir da jemand helfen? Danke Henry Link to comment Share on other sites More sharing options...
henry33 Posted April 30, 2008 Author Report Share Posted April 30, 2008 Ich habe ein php-script zur Anzeige gefunden. Vielleicht hat jemand ne Idee wie man das in der specials.php mit einbinden kann? Hier das Script: <? //index.php //set your year, month, daym hour, minute, second you want to cuuntdown to. //ONLY CHANGE FROM HERE $year="2006"; $month="12"; $day="25"; $hour="00"; $minute="00"; $second="00"; $event="Xmas 06"; //TO HERE. PLEASE DO NOT CHANGE ANY OTHER BIT OF CODE $time=mktime($hour, $minute, $second, $month, $day, $year); $timecurrent=date('U'); $cdtime=$time-$timecurrent; $cdminutes=$cdtime/60; $cdhours=$cdtime/3600; $cddays=$cdhours/24; $cdmonths=$cddays/30; $cdyears=$cddays/365; echo "Time left till $event<br> $cdtime seconds<br> $cdminutes minutes<br> $cdhours hours<br> $cddays days<br> $cdmonths months <br> $cdyears years "; ?> <style type="text/css"> <!-- .style1 {font-size: 10px} --> </style> <br /> <br />[/php] Link to comment Share on other sites More sharing options...
henry33 Posted May 2, 2008 Author Report Share Posted May 2, 2008 ...schade das keiner ne Lösung hat. Ich dachte diese Funktion wäre für viele interessant. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.