|
Counters MIDMI.NET offers you a variety of hit, clock, and date counters for your web page. These are often used to count how many hits your web page may have gotten, or to display the date and time for the visitor to see. MIDMI.NET users may have only one counter for their website. If you wish to have another one on another page, please contact Tech Support (
This e-mail address is being protected from spambots. You need JavaScript enabled to view it
) for more information.
To set up your counter on your webpage, you will need to include an image tag (<IMG>) in the HTML. Instead of calling an image, however, it will call a CGI script that will send the browser a .gif image of how many "hits" your page has gotten since you set the counter up. (Note: The default is a hit counter. For the clock and date counters, you must change the options noted below.) The basic image tag would be like this:
<IMG SRC="http://www.midmi.net/cgi-bin/Count.cgi?df=username.dat">
Note the bold part of that image tag. For your page, you will need to replace "username.dat " with whatever your MIDMI.NET username is, in all lowercase. Thus, if your username was "chezwhiz" the tag would look like this:
<IMG SRC="http://www.midmi.net/cgi-bin/Count.cgi?df=chezwhiz.dat">
What this will do is place the default counter where ever you place the image tag. It will not be too fancy, but it will be functional. Since the counter is using an image tag, you can still use all of the standard HTML image attributes, like ALIGN, BORDER, and so on.
To display the clock, you add another option after the ? in the image tag. You would use the "display" option to tell the CGI script to display the clock or the date instead of how many hits you have gathered. So, if you wanted to display the c lock option (which would show the time on MIDMI.NET's servers) you would place the following as the image tag:
<IMG SRC="http://www.midmi.net/cgi-bin/Count.cgi?display=clock">
Notice, you do not have to place the username part, nor do you in the date version as well:
<IMG SRC="http://www.midmi.net/cgi-bin/Count.cgi?display=date">
Thus, you can have a hit counter, clock, and date all on the same page. These three, with default settings, look like this:
If you reload this page several times, you will notice that the hit counter always displays a random number. That is because we have not given it a username to use, thus the program defaults to generating random numbers. So, if you seem to be getting random numbers on your page, make sure you placed the username correctly.
There are many options for customizing your counters. There are so many, that we will not list them all here. I will list the most commonly used options below, but if you are interested in the rest, please go to the options list on the WWW Access Counter Homepage . Options are separated in the image tag with ampersands "&" like so:
<IMG src="http://www.midmi.net/cgi-bin/Count.cgi?df=name.dat&dd=A" mce_src="http://www.midmi.net/cgi-bin/Count.cgi?df=name.dat&dd=A">
The options can go in any order, but there can be no spaces. As well, none of the options are case-sensitive.
Options
Option | Code | Description | Example | All Displays | Digit Directory | dd=A | Denotes directory of a specific styles of digits. See styles below... | dd=A | Frame Thickness | ft=X | You can wrap the counter in an ornamental frame of X pixels thick. Use 0 for no frame. Values over 5 make a nice 3-D effect. | ft=4 | Frame Color | frgb=R;G;B or frgb=RRGGBB (in hex) | Specifies the color of the frame in RGB (red/green/blue) or Hexadecimal (ie: FF00FF) format. See the Color Name database for color codes. | frgb=100;139;216 or frgb=648bd8 | Hit Counter | Left padding with 0's | pad=B | Turns padding on/off. Valid values Y and N. Padding places extra 0's in front of the count number, up to the maximum that is specified with the "md" setting below. | pad=N or pad=Y | Max Digits | md=X | Defines maximum number of digits to display. Any value between 5 and 10 inclusive are permitted. | md=6 | Display Comma | comma=X | Places a comma after every 3rd digit from right. Value is either T for true or F for false. | comma=T or comma=F | Clock Display | Time Format | tformat=X | This parameter can be used to display time in 12 or 24 hour format. The values is either 12 or 24. | tformat=12 | Time Display | Date Format | dformat=X | The valid value is any combination of MMDDYY (Month-Day-Year). For example, dformat=ddmmyy, dformat=YYMMDD. | dformat=MMDDYY |
|
|