View Full Version : Countdowns


ellen2321
07-24-2005, 02:58 AM
I want to put a countdown on my site. I want it preferably to be in number of days, not years months weeks days. Is there a website i can go to get a countdown? Thanks!

Ellen :)

onigiri
07-24-2005, 04:01 AM
http://www.elouai.com/countdown-clock.php

AcidMan00Agent
08-20-2005, 01:22 AM
<!-- START OF SCRIPT -->
<!-- For more scripts visit http://www.netpedia.com -->
<HTML>
<TITLE>Day Countdown</TITLE>
<BODY>

<SCRIPT LANGUAGE="JavaScript">
<!-- Script by: Alan Palmer -->
<!-- Web Site: http://www.users.dircon.co.uk/~apalmer -->



<!-- Begin
<!-- Change the Date here.... to the date you want to count down to....-->
var date = new Date("January 1, 2000");
<!-- Change the description value to whatever you want it to be, most likely it would be "the Fourth of July, 2006" for example -->
var description = "the year 2000";
var now = new Date();
var diff = date.getTime() - now.getTime();
var days = Math.floor(diff / (1000 * 60 * 60 * 24));
document.write("<center><h3>")
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("It's" + description + "!");
document.write("</h3></center>");
}
// End -->
</script>
<!-- END OF SCRIPT -->


I got this code by using firstpage http://www.evrsoft.com


example can be seen at http://www.freewebs.com/acidman00agent/countdown.htm