How Popular are Your Web Pages?
Do you want to track the number of times your Web site has been
"hit" or visited? Do you want to show your visitors how
many others have been there before? If so, then you want to add
a counter to your Web site. There are many Web sites that offer
"free" counter programs. The problem is that most of them
require placing advertisements on your page along with the counter.
Since bama.ua.edu is a University-owned machine, advertisements
on bama-hosted Web pages are prohibited. (If you weren't aware of
this, you should check out the computer policies at computercenter.ua.edu/policy
in case there are other restrictions that you should know about.)
If you want a counter on your page, use the ones already provided
for you on bama.ua.edu. Just follow these simple steps:
-
The names of any pages on which you want to display one of
these counters must end with the extension .shtml instead of
.html or .htm. When you rename a page, make sure that you correct
any links to it from other pages.
-
Decide which form you want the number to be in. Choose between
cardinal numbers (1, 2, 3, ...) and ordinal numbers (1st, 2nd,
3rd, ...).
-
Insert the following as HTML code in your page where you want
the number to be displayed. (If you are using a Web page editor,
consult its Help files for information about inserting HTML
code.)
For cardinal numbers:
<!--#include virtual="/cgi-bin/counter"-->
For ordinal numbers:
<!--#include virtual="/cgi-bin/counter-ord"-->
-
Surround the tag with text for your counter. For example you
may want to display "You are visitor number "
before the cardinal counter or "You are the "
before and " visitor" after the ordinal counter.
-
Publish your page to your bama.ua.edu Web site as you normally
would. Until the page is published to bama, you won't be
able to see your counter in a browser.
-
Make sure that you are now viewing the page with the .shtml
extension. This means checking your links and possibly deleting
the copy with the .html or .htm extension.
If you have any problems, please call the HelpDesk at 348-2435.
|