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 to count down X number of seconds.
- See 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.
|