|
|
|
| silent: Whether or not to show the value of the counter to the person accessing the page. yes - Don't show the counter to the page's accesser. no - Show the counter to the page's accesser (default). | |
| width: The minimum width of the displayed counter (padded with 0's if necessary). | |
| nocommas: Whether or not to insert commas into the number for readability. yes - Don't insert commas. no - insert commas (default). If width is not 0 then no commas are inserted regardless of the setting in nocommas. | |
| max: The maximum number to count to. When the counter reaches this number, its behavior is controlled by rollover. By default the number is near two billion. | |
| min: The minimum number to count down to. When the counter reaches this number, its behavior is controlled by rollover. By default the number is zero. | |
| rollover: When you hit the maximum or minimum allowed number, what do you do? yes - Flip to the other endpoint. I.e. if at max, change to min. If at min, change to max. no - Stop counting. Do not add or subtract any further from the counter. | |
| increment: The number to add to the counter. Default: 1. You may also use the keyword "random" which means that the next value of the counter should be a random number between min and max. | |
| ith: Whether or not to append st, nd, rd, or th as appropriate to the end of the counter (i.e. 1st, 2nd, 3rd, 4th, and so on.) yes - Add the extension. no - Don't add the extension (default). | |
| gfx: Use graphics (i.e. GIF files) to display the counter number instead of using a text counter. Put the html markup to include the graphics where "#" is the digit to replace. For example, if your counter were at 1,234 and you used the following line: <!--#counter ith="yes" gfx="<IMG SRC=\"gifs/#.gif\">" file="counter" --> then it would be replaced by the html markup: <IMG SRC="gifs/1.gif"><IMG SRC="gifs/,.gif"><IMG SRC="gifs/2.gif"><IMG SRC="gifs/3.gif"><IMG SRC="gifs/4.gif"> | |
| file: The name of the file (minus the .cnt extension) to store the counter in. (For example, if your filename is "home.cnt" then you should use file="home".) Warning: the "file" directive must come after everything except include and debug. | |
| include: The "base" filename (where %i is the counter) of a file to include in to the document based on the value of the counter. (For example, if you want to include pageX.html where X is the value of the counter, use include="page%i.html".) | |
| debug, if it exists, means print out the internal variables at the point in the command to assist in figuring out why the counter isn't working. This is provided for expert users... If you don't understand what its saying, don't use it. |
Oh yeah. By the way, you are the 6,354th person to read this page.
Enjoy!
![]()
Add this to your web document:
Welcome, you are the <strong><!--#counter
ith="yes" file="counter"
--></strong> person to access this web page.
And create the counter.cnt file. It looks like:
Welcome, you are the 1,234,567th
person to access this web page.
![]()
| Added yes/no and 1/0 as valid in addition to true/false |
| Added "gfx" option. | |
| Upgraded to function with Apache 1.1.1 |
| Added "random" setting to increment option | |
| Added "yes/no" options for all tags. Previously the existance of the tag with nothing in the quotes meant do the opposite of the default. This action is preserved for backward compatibility. | |
| Upgraded to function with NCSA httpd 1.5.1 |
| Added "ith" option. | |
| Upgraded to function with NCSA httpd 1.5a |
![]()
|
Modified Tuesday, November 02, 2010 Copyright @ 2010 by Fathers' Manifesto & Christian Party |