Adding an Access Counter to your Homepage

Would you like a counter for your web page? The CGI script Count rel. 2.3 has been installed on the ACES WWW server and is available to Alabama Cooperative Extension System users needing to count webpage accesses (hits). If you need to track more specific information please contact the webmaster.

Before installing a counter, you must notify the ACES Webmaster so that a data file can be created for you in the counter data directory. This is the file where the data (the number of hits you have received) is recorded. Once the file is created, you can refer to the program from your web page as follows:

<img src="/cgi-bin/Count.cgi?df=COUNTFILE.DAT|dd=FONTTYPE" align=YourImageAlignment>

where COUNTFILE.DAT is the name of your counter data file. For example, if you look at any of the county home pages, you will see the following:

<img src="/cgi-bin/Count.cgi?df=CountyName.dat|dd=E" align=middle>

The "E" in "dd=E" refers to the font that your counter will display. Please choose one of the following and substitute the appropriate letter.
 

A =
B =
C =
D =
E =
The "align" tag is the same as alignment for any image tag.

ALIGN - specifies the alignment of the image in relation to the surrounding text. If you do not specify a value for ALIGN, Navigator uses BOTTOM as the default. (since Navigator version 1.1)
 

LEFT aligns an image with the left margin. 
RIGHT aligns an image with the right margin. 
TOP aligns the top of an image with the top of the tallest item in the current line. 
ABSMIDDLE aligns the middle of an image with the middle of the text in the current line. (as of Navigator 3.0)
ABSBOTTOM  aligns the bottom of an image with the bottom of the lowest item in the current line. (as of Navigator 3.0)
TEXTTOP aligns the top of an image with the top of the tallest text in the current line. (as of Navigator 3.0)
MIDDLE aligns the middle of the image with the baseline of the text in the current line. (as of Navigator 3.0)
BASELINE aligns the bottom of an image with the baseline of the text in the current line. (as of Navigator 3.0)
BOTTOM is the same as BASELINE.

The Count.cgi webpage has more information and offers several display and format options. Please refer to the instructions for more information.


comptech@acesag.auburn.edu