Adding a counter to a page is very easy, All you need to do is add the following code tag in the page that displays your counter.
<img src="/cgi-bin/Count.cgi?df=cfile">
For instance, this page has been accessed, times so far.

The counter program is very powerful, and this page only shows a couple simple examples. The only feature used in the preceeding example is the "df" option which let's you name the file used to hold the count. Every page which contains a reference to the "Counter.pl" script with the same filename on the "df=XXX" tag will update the same number. So you can share counters among a number of pages, or have independent counters.

For more information on the counter program, please refer to the author's extensive notes on the subject. The URL for his homepage is http://www.fccc.edu/users/muquit/Count.html

Here's another example, using the Counter.pl script to print a digital clock instead of a page counter. The current time here in Sun Baked Phoenix Arizona is , To change time zones you only need to add the timezone=GMT-0100 for any difference from GMT.

And again the code is very simple,

<img src="/cgi-bin/Count.cgi? display=clock|timezone=GMT-0800"> Below are some examples of the (very extensive) options available for controlling the look and feel of the counter program. Please refer to the author's homepage for complete documentation. You can cut-n-paste any of the following and experiment if you like. The HTML required to produce each of them is listed to the right of the graphic.




The "dd=" options controls the digit style.
<IMG SRC="/cgi-bin/Count.cgi?df=cfile1|dd=A">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile1|dd=B">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile1|dd=C">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile1|dd=D">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile1|dd=E">





The following samples use the "dd=" option with clocks.
<IMG SRC="/cgi-bin/Count.cgi?display=clock">
<IMG SRC="/cgi-bin/Count.cgi?display=clock|chcolor=T">
<IMG SRC="/cgi-bin/Count.cgi?display=clock|dd=B">
<IMG SRC="/cgi-bin/Count.cgi?display=clock|dd=C">





The "ft=" option controls the width of the frame border.
<IMG SRC="/cgi-bin/Count.cgi?df=cfile2|dd=B|ft=0">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile2|dd=B|ft=5">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile2|dd=B|ft=10">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile2|ft=12|frgb=25;80;8">
<IMG SRC="/cgi-bin/Count.cgi?df=cfile2|dd=B|ft=10|frgb=180;30;12">





You can make the counter images opaque with the "tr=1" (transparency) option.
<IMG SRC="/cgi-bin/Count.cgi?df=xx|ft=0|tr=1">
<IMG SRC="/cgi-bin/Count.cgi?df=xx|ft=12|tr=1|frgb=25;80;8">
<IMG SRC="/cgi-bin/Count.cgi?df=xx|dd=C|ft=10|tr=1|frgb=180;130;2">





For the default counter, changing the color of the numbers is easy with the "prgb=" option.
<IMG SRC="/cgi-bin/Count.cgi?df=abc|ft=0|prgb=200;20;180">
<IMG SRC="/cgi-bin/Count.cgi?df=abc|ft=0|tr=1|prgb=200;20;180">
<IMG SRC="/cgi-bin/Count.cgi?df=abc|ft=0|tr=1|prgb=20;10;60">
<IMG SRC="/cgi-bin/Count.cgi?df=abc|ft=0|tr=1|prgb=100;90;8">
<IMG SRC="/cgi-bin/Count.cgi?df=abc|ft=0|tr=1|prgb=20;30;160">






Copyright ©1996-97 publishing®
Last Update: 06/24/97