Counters
Use a counter when you want to keep track
of how many times your site has been visited (or pages within your site).
Putting a counter on you page is a little bit different than the other
items you have put on your page. Like forms, you have to edit the HTML
tags outside of the Netscape page composing program. Typically, counters
go at the bottom of a page. Open your page in a word processing program,
like Notepad in Windows or Simple Text on a Mac. Scroll to the bottom of
the page and insert the code you like just before the tag that looks like
this: </BODY>. Just copy the code in the table and paste it into your
page.
NOTE: you need to change the part
after ?df= so that the counter will be about your page. Change chic to
your username. Change .index.html to the name of the page where you are
putting the counter. For example, if your username is tnchess, and you
want the counter on your home page, your tag will look like this:
<img
SRC="/cgi-bin/Count.cgi?df=tnchess.index.html|md=6|dd=A|ft=3"
>
It's okay if the tag is broken up on more
than one line as long as you don't insert any spaces. Also, I usually wait
until I have finished everything else on my page before I insert the counter.
Netscape will change the code if you open it in the composer mode. This
isn't a huge problem. It's just that you'll have to put the counter back
in again before you send it off to your site.
| A |
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=A|ft=3"
> |
 |
| B |
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=B|ft=3"
> |
 |
| C |
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=C|ft=3"
> |
 |
| D |
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=D|ft=3"
> |
 |
| E |
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=E|ft=3"
> |
 |
You can add text around your counter, too.
Copy these lines to make your counter look like the example.
You are visitor number <img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|dd=A|ft=3">
since this site opened November
16, 1998. |
You are visitor number
since this site opened November 16, 1998.
NOTE: don't forget to change the
tag so that the counter is about your page.
Read on if you want to learn more about
the counters on KORRnet.
The counter script is an HTML tag that
instructs the browser to locate an image generated by the computer at KORRnet.
This is the tag that I use on the home page for this site:
<img
SRC="/cgi-bin/Count.cgi?df=chic.index.html|md=6|pad=n|incr=0|dd=E|ft=0"
>
Here is the tag broken down by elements:
The first part of the tag tells the browser
that this is an image: img.
Then it tells the browser where to look
for the image: SRC (which means source)
The source is found when the browser follows
the path: "/cgi-bin/Count.cgi?
The next few pieces of information following
the ? are used to generate some of the qualities the counter image
will have. Each piece of the information is followed by a vertical line
|,
and the whole thing is in quotes.
df= this is the name of the data
file that will be used to keep track of how many times the site is visited.
The name of the data file is the username, a period, and then the name
of the page that the counter will be on.
md= maximum digits, which can be
set from 5 to 10.
pad= this pads the left side of
the counter with zeros. It is either on (Y) or off (N).
incr= this tells the counter how
much to increment the counter by. This is handy when you are designing
a page. I often access the page many times while I am working on it to
see how the changes I make look. I set this code to 0 so that I won't inflate
the count. When I am done making the page, I'll remove this code altogether,
and the counter will function normally.
dd= this stands for digit directory.
Five styles of counters are available: A, B, C, D, and E. See the table
above for an example of each style.
ft= if you want a frame around your
counter, this sets the frame thickness in pixels. Large values (5 on up)
will give the frame a 3d kind of look.
Follow this link for even more information
from the author of the counter script:
WWW
Homepage Access Counter
(http://www.fccc.edu/users/muquit/Count.html)