Here is an instant mini countdown generator. You can use it to countdown the days until any event, like this:
|
To make it work for you, first copy and paste the code below into your webpage where you want the countdown to show up. Then, make the four changes shown below in red. First, put in the date of the event you are counting down to, including the year. Second, put in the name of the event. Third, include the full address of the image you want to appear next to your countdown. You must also remember to load this image into your page directory. Finally, put in the width and height of the image you are using.
<!--Start of Countdown Generator-->
<div align="center"><center><table border="0" cellpadding="0" cellspacing="0" width="150"><tr>
<td width="100%"><p align="center"><font face="Verdana"><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 = "Name of Your Event";var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<center><h6>")
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("Tomorrow is " + description);
}
else {
document.write("Today is " + description + "!");
}
document.write("</h6></center>");
// End -->
</script> </font> </td>
<td width="100%"><font face="Verdana" size="1"><img src="http://www.yoursite.com/nameofimage..gif" WIDTH="32" HEIGHT="32"></font></td>
</tr>
</table>
</center></div>
<!--End of Countdown Code-->
Here are some other images that would be good for countdowns. Be sure to copy them and load them into your directory, and include the full address and height and width information! Or you can use your own images in the same way!
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()
![]()