javascripts
 

SimplytheBest
Scripts

ASP scripts
PERL scripts
PHP scripts
JavaScripts & Ajax
Snippets
Online scripts

Ajax, DHTML
& JavaScripts

Animation
Background
Bookmarks
Buttons
Calculators
Cookies
Data handling
E-mail
Enhancements
Forms
Image rotation
Menus
Messages
Miscellaneous
Music
Password protection
Redirection
Scrollers
Tables
Time & date
Windows

Publishers
Add script
Account login
Publisher list



 

Home > Scripts > DHTML scripts & JavaScripts > Time & date > Real time countdown

 

Real time countdown script

AUTHOR: TDavid
TYPE: Freeware
BROWSERS: Javascript enabled all

You can display a real-time countdown to any date and time using this script.


EXAMPLE

Countdown To December 31, 2007, 12:00:00

Days Hours Minutes Seconds


1)
Insert the following script in the <HEAD> section of the page.

then copy (CTRL-C) & paste (CTRL-V)

2) Insert the following HTML code in the <BODY> section where you want the countdown to appear in the page.

then copy (CTRL-C) & paste (CTRL-V)

3) Look for this piece of code in the script to set the date and the time to the countdown:

var now = new Date();
var event = new Date("Dec 31 2007 12:00:00");


[BACK] [TOP]

 


Copyright © 1997-2009 SimplytheBest Inc. Terms of Use and Legal Disclaimer.
All copyrights are acknowledged. All rights reserved.