Countdown
Do you want to know how long it is till the next millenium? The Countdown applet displays the number of days till or since a specified date. Including source, download it for free!
Days since the last millenium:
Days till the next millenium:
Let your friends know how long it is until your birthday using your own digit images!
Please read this page very carefully from top to bottom as it will answer all your questions about the Countdown applet.
Features
- Displays the number of days since or till any specified date
- User-defined images for the digits
- Parameters for background image, color and digit positioning
- Freeware
- Includes source code
- Use it as a dynamic counter on your homepage
Requirements
To run the Countdown applet, you need one of the following:
- A browser that supports Java 1.0.2 applets or higher
- Or the Java appletviewer version 1.0.2 or higher
Download and Installation
- Read the information on the Copyright page.
- Download
countdown.zip
(26 KBytes). - Unzip
countdown.zip
into a newly created directory. - To start the Countdown applet, open
countdown.html
in the browser of your choice. - Note that in the HTML files from
countdown.zip
not all links are working! Please use the web version of this page to have it fully functional.
Contents of the Zip File
The zip file contains the Java class files, source code, documentation, an example HTML file and a sample set of digit images.
[newly created directory] | ______________________________________|___________________________________________ | | | | | | | | | | | | | | countdown.html countdown copyright.html contact.html banners.html faq.html images | | | | *.class [images for the HTML pages] *.java example.html *.gif
How to use
To display the Countdown applet on your webpage, use a HTML statement like the following:
<APPLET code="CountDown.class" width=80 height=30> <PARAM name="date" value="24 Dec"> <PARAM name="bgcolor" value="FF0000"> <PARAM name="digitx" value="23"> <PARAM name="digity" value="12"> </APPLET>
Parameters
- Date
- The date you want to count down to. It must be specified in a
format like
1 Jan 2000
or similar. If you do not submit this parameter, the applet will show the number666
, which has its own special meaning. - Bgcolor
- Background color of the applet. For example, a value of
808080
will show a dark gray. By default, no background color is set. - Background
- With this parameter, you can specify a file that will be used as a background image for the applet. By default, no background image will be displayed.
- Space
- Number of pixels between the digit images. Default value:
1
. - DigitX
- X position of the first digit. If this parameter is not specified, the digits will be centered horizontally.
- DigitY
- Y position of the digits. If this parameter is not specified, the digits will be centered vertically.
The digits are stored as GIF files. These files must be accessible from the classpath, so the easiest way is to put them in the same directory as the class files. The names of the files are:
zero.gif one.gif two.gif three.gif four.gif five.gif six.gif seven.gif eight.gif nine.gif
If you want to use your own images, rename your files to these names and put them in the appropriate directory.
Feedback
Please contact me for any bug reports, if you need troubleshooting help or if you want new features to be added. Also I would like to know if you decided to use Countdown, so I can inform you of any updates.