Counter for UH Department Pages (Count.cgi)
Note: Only University of Hawaii departments with directories on the ITS server (accessible via http://www.hawaii.edu/departmentname) will be able to use this counter. Personal home pages (http://www2.hawaii.edu) and those on other servers will not be able to use this CGI.
<img src="/cgi-bin/Count.cgi?df=yourdirectory.yourfilename.dat" alt="hit count">
To avoid confusion with other department's pages, the "df," or data file, attribute should be based on the page's URL. For example, if your page's URL is http://www.hawaii.edu/counter/index.html, then the tag may look like this: <img src="/cgi-bin/Count.cgi?df=counter.index.html.dat" alt="hit count"> and will produce this: Be sure to add ".dat" to the end of the data file name. Another example: If your URL is http://www.hawaii.edu/infotech/documents/doc1.html, then you might use: <img src="/cgi-bin/Count.cgi?df=infotech.documents.doc1.html.dat" alt="hit count">
See below for options and more information:
Brief Legend
df = datafile name (should be unique for each counter)
dd = digit style (see Digit styles for what's available)
ft = frame thickness (pixels)
st = starting count number (set the counter to a given number, e.g., your current count. Works only once; ignored thereafter.)
display = show clock or date
Information on using the counter:
To call the counter, simply add an inline image tag to your page, e.g.,
Do not use slashes ("/") in the data file name.
Examples with a few options
(Note: options are separated by a "|" vertical bar):What | Image | Code |
---|---|---|
Hit Count (plain) | <img src="/cgi-bin/Count.cgi?df=counter.index.html.dat|dd=E|ft=0" alt="hit count"> | |
Hit Count | <img src="/cgi-bin/Count.cgi?df=counter.index.html.dat|dd=B" alt="hit count"> | |
Current Time | <img src="/cgi-bin/Count.cgi?display=clock|dd=D" alt="time graphic"> | |
Current Date | <img src="/cgi-bin/Count.cgi?display=date|dd=cdr|ft=2" alt="date graphic"> |
df = datafile name (should be unique for each counter)
dd = digit style (see Digit styles for what's available)
ft = frame thickness (pixels)
st = starting count number (set the counter to a given number, e.g., your current count. Works only once; ignored thereafter.)
display = show clock or date