Tutorials Infos - Anleitungen - Hilfe - Dreamcodes
 

Countdown

Erzeugt einen Datumscowndown

Script:

<?
   $day
= 19; // Day
   
$month = 4; // Month
   
$year = date("Y", time()) + 1; // Year

   
if ($month == 1) $month_name= "January";
   if (
$month == 2) $month_name= "February";
   if (
$month == 3) $month_name= "March";
   if (
$month == 4) $month_name= "April";
   if (
$month == 5) $month_name= "May";
   if (
$month == 6) $month_name= "June";
   if (
$month == 7) $month_name= "July";
   if (
$month == 8) $month_name= "August";
   if (
$month == 9) $month_name= "September";
   if (
$month == 10) $month_name= "October";
   if (
$month == 11) $month_name= "November";
   if (
$month == 12) $month_name= "December";

   echo (int)((
mktime (0,0,0,$month,$day,$year) - time(void))/86400);
   echo
" Tage, bis zum <BR>";
   echo
"$month_name $day, $year";

?>

 
ID: 735
eingestellt am: 25.03.2005
Autor: na
Status zum lesen: Gast
gelesen: 8465
Webseite: www.dreamcodes.com
[Drucken]