
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.
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,
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.
|