[Bradley University]

How to add a counter to your web page


Who Can Use the Counter Program?

Anyone creating web pages on lydia or hilltop can include counters within their web page. Those outside these machines cannot use this method for adding a counter to their page.

Using the Counter Program

Just include the following text within your web page:

<!--#include virtual="/admin/exec/counter.html"-->

For example:

You are visitor number <!--#include virtual="/admin/exec/counter.html"--> to this page

will show up as

You are visitor number 11847 to this page.

If you want the number appearing to be an ordinal number, such as 1st or 52nd, then you may include this within your web page:

You are the <!--#include virtual="/admin/exec/counter-ord.html"--> person to visit this page.

Which will show up as

You are the 11848 person to visit this page.

If you have more than one counter on the same page, and you'd like the counter to only be incremented once, just add a -nc to any includes which you don't want incremented:

<!--#include virtual="/admin/exec/counter-ord-nc.html"-->

Last update: 2-Nov-99