Teaches date() and number manipulation.
<?
$EVENTMONTH = "9";
$EVENTDAY = "25";
$NOWMONTH = date("m");
$NOWDAY = date("d");
$DIFFMONTH = $EVENTMONTH - $NOWMONTH;
$DIFFDAY = $EVENTDAY - $NOWDAY;
?>
<link rel="stylesheet" type="text/css" href="datatypes/stylesheet.css" />
<html>
<head>
<title>Joe's Birthday Countdown</title>
</head>
<body>
<center>
<h1>Joe's Birthday Countdown</h1>
<? echo("$DIFFMONTH"); ?> months.<br />
<? echo("$DIFFDAY"); ?> days.<br />
</center>
</body>
</html>
http://www.javaop.com/~joe/birthdaycountdown.php
Don't let War let you hear saying that. ;) He finds JS to be the devil.
Why not a java applet then? Not quite JS. :P
Quote from: deadly7 on September 11, 2005, 12:36:59 PM
Don't let War let you hear saying that. ;) He finds JS to be the devil.
Javascript is the devil.
And joe... I'm not even going to respond to that, K? :)