View Full Version : can someone help me with a Countdown
lpeek
05-01-2003, 05:19 PM
does anyone know any code to make a countdown thing? so it counts down the days to a date? i want it to show the number of days leftt until 10th June 2003.
petervazed
05-01-2003, 05:31 PM
Just googeling.......;)
http://www.devscripts.com/visit.php?sId=1759
:rocker:
DarkStreetDev
05-02-2003, 11:41 PM
<script type="text/JavaScript">
<!--
var now = new Date();
var birthd = new Date("December 25, 2003");
var toGo = birthd.getTime() - now.getTime();
var days = Math.floor(toGo / (1000 * 60 * 60 * 24));
if (days >="0"){
document.write("<p class=\"normal\" align=\"center\"><u>" + days + "</u> days to Christmas!</p>")
}
else
{
document.write("<p class=\"normal\">Christmas Season!</p>")
}
// -->
</script>
I hope this script is efficient!
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.