
|
Here is a Countdown that tells the number of days until you get your license :)
For the countdown button to work, you need to do the following things:
1) Copy this image to your computer, either on a floppy disc or to your hardrive, and upload it to your home page:
3) Please link to: Countdown by Roxydoll12
2) Cut and paste (or copy) the html code into your page. It must be EXACT for it to work. The image is called "driving.gif" Don't change it!
HERE IS THE CODE:
<!--Start of Driving Countdown-->
<div align=
"center"><center><table border=
"0" cellpadding="4" cellspacing="0" width="264" bgcolor="#d05c00"> <tr> <td width="75%"><div align="center"><center><table border="0" cellpadding="2" cellspacing="0" width="258" bgcolor="#ffffb7"> <tr> <td width="150%"><div align="center"><center><table border="0" cellpadding="2" cellspacing="0" width="250" style="background-color: #FFFFFF"> <tr> <td width="100%"><p align="center"> <script LANGUAGE="JavaScript"><!-- Original: Alan Palmer -->
<!-- Web Site: <http://www.jsr.communitech.net> -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! <http://javascript.internet.com> -->
<!-- Begin
var date = new Date("September 12, 2004");
var description = "Alexa gets her license!!";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<center><h5>")
if (days > 1) {
document.write(days + " days until " + description);
}
else if (days == 1) {
document.write("Only two days until " + description);
}
else if (days == 0) {
document.write("Only one more day until " + description);
}
else {
document.write("Today is the day " + description + "! Clear the road! ");
}
document.write("</h5></center>");
// End -->
</script>
</td> <td width="100%"><img src="images/driving.gif" WIDTH="134" HEIGHT="59"></td> </tr> </table> </center></div></td> </tr> </table> </center></div></td> </tr></table>
</center></div>
<p><end of Driving Countdown>
</p>Personalize the Code for you as follows:
1) Put in the date when you are going to get your license in the line of the html code that begins "var date=new date".
2) Replace Alexa's name in the line that begins "var description=" with your name.