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: Your browser does not support Java applets.

Days till the next millenium: Your browser does not support Java applets.

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

Requirements

To run the Countdown applet, you need one of the following:

Download and Installation

  1. Read the information on the Copyright page.
  2. Download countdown.zip (26 KBytes).
  3. Unzip countdown.zip into a newly created directory.
  4. To start the Countdown applet, open countdown.html in the browser of your choice.
  5. 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 number 666, 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.


This page can be found on the web at http://www.informatik.uni-muenchen.de/~michael.kraus/countdown.html and has been modified the last time on 29 July 2002. The email address of the author is michael.kraus@informatik.uni-muenchen.de. Please read the copyright statement before copying data from this site.