javascript countdown.

Here is a handy script for you to use if you would like to put a count-down at your page. It could be used as a count-down to birthdays or to other important occasions. Below is an example of the result of the script:



Simply copy and paste the following code into the < body > tag of your html code. p.s. I spend quite a lot of my time writing these scripts, so it would be great if you could leave the credits alone.

<script language="Javascript">
/* Javascript designed & written by Nora Jiang @ www.faded-chimera.net */
/* Javascript for Countdown */

var now = new Date();
var then = new Date("January 1, 2010"); // This is where you change the date
var gap = then.getTime() - now.getTime();
gap = Math.floor(gap / (1000 * 60 * 60 * 24));
document.write ("There are " + gap + " days until 2010!~"); // Change your text
</script>