Demo

Demostration of RealTimeCounter Applet.

Note: Demo not fully functional.

Description

This is a simple counter which take a data file which is similar to the example from the link, and increments and displays the number of counts using the image provided. It also automatically updates itself to the most current number of hits based on the data file which was supply to it.

Usage/Parameters

readFile The URL of the data file which store the number of hits to the page.
writeFile The directory and name of where the data file is located in the server's hard drive
cgi The URL of the CGI which writes the number of counts to the data file.
numDigits The number of digits to display.
image The image of the digits for the counter.

Example

Here is an example of the HTML source code for embedding this applet:

    <applet archive="RealTimeCounter.jar" code="RealTimeCounter.class" width="210" height="40"> 
	<param name="readFile" value="data/counter.dat">    
	<param name="writeFile" value="data/counter.dat">    
	<param name="cgi" value="cgi-bin/writefile.cgi"> 
	<param name="numDigits" value="6"> 
	<param name="image" value="images/numbers.gif"> 
    </applet>  

Version Updates

Version 1.1

  • Updated the counter applet so now it can read the number of counts as well as increment the number of counts.

Download

Download this applet now. (source code included)