Countdown Clock

Download

Deadline

 

Time until May 6, 2010

 

 

Time until April 1, 2012

 

 

Time until August 23, 2014

 

 

Time until Oct 22, 2015

 

Countdown

 

30 seconds

 

 

120 seconds

 

 

3600 seconds (1 hour)

 

 

31556926 seconds (1 year)



1 hour = 3600 seconds
1 day = 86400 seconds
1 week = 604800 seconds
1 month = 2629744 seconds
1 year = 31556926 seconds

Usage:

1. Download the files

Click here to download the countdown clock.

2. Create a new folder on your web site named "countdown".

Example:
http://www.yoursite.com/countdown/

3. Open the JavaScript file named "countdown.js" in a text editor.

Change the variable named "countdownSWF" so that it refers to the URL where you will be storing the countdown clock in the newly created folder.

Example:
var countdownSWF = "http://www.yoursite.com/countdown/countdown.swf";

Save the JavaScript file

4. Upload countdown.swf and countdown.js to your web server

5. Add the countdown clock to a page.

Open your HTML page and place the following code anywhere between the opening <body> and closing </body> tags.

<script src="http://www.yoursite.com/countdown/countdown.js"></script>
<script>
deadline("2010-5-6-0-0-0");</textarea>
</script>
</textarea>

Edit the date so that it refers to the date you are targeting. Edit the URL to the JavaScript file so that it referes to the file on your server.

See the source code of this page, and the source code of the JavaScript file for more information.

Save your page and re-upload it. Be sure to empty your browser's cache so that the changes to the page are recognized by your browser.