Count 2.0 example page

Marketrends Access Counter and Clock Example Page


Note: The counter images you are seeing below are previously generated with the described URL tags. They are not generated them while you load the page, because it creates many processes on our machine.

The keywords in the query strings can be separated by & or |


Creating the Counter data file at MarkeTrends

Before you can use a counter, you need to create the counter data file. Use your domain name (e.g. www.marketrends.net would be marketrends) your full counter name will end in ".dat" (e.g. marketrends.dat). In our examples below, x.dat should be replaced by your full countername. Once the counter is installed on your page contact us via email at count@marketrends.net and we will enable it to run on your domain.

Frame color and Thickness

A frame with a bluish color is wrapped by default. You have to use ft=0 to ignore this feature.
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?df=x.dat">

This may not work with all browsers. You should use at least one keyword in the query string (for example, df=data_file ). A random counter is displayed if you don't specify a data file. The default frame thickness, color and digit style is used.
You can get a list of rgb color values here

<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=1">

No df= option, therefore random digits are displayed. Because of ft=1 no frame was wrapped.
 <img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=6">

Random digits. Wrapped frame is with default color and thickness.
 <img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=10&df=x.dat">

Wrapped frame is with default color and asked thickness.
 <img src="http://www.marketrends.net/cgi-bin/Count.cgi?frgb=ffd700&df=x.dat">

The wrapped frame is of the asked color and default thickness. The color is used as hex string. Note, DO NOT add # before the string as you use with Netscape. In query string, if you use a #, everything after # is ignored. So, be careful.

or you use can use the RGB triplets like:

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?frgb=255;215;0&df=x.dat">

or you even use the color name. You have to add this support while you configure using the Count-config script.

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?frgb=gold|df=x.dat">

Rotation

<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=0|rotate=Y|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=0°rees=180|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=0°rees=90"df=x.dat>

The first counter is rotated default 270 degrees toward right, no anlge is specified as rotate keyword is used.

Digit Styles

<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=B|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=B|frgb=69;139;116&df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=C|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=D|ft=3|df=x.dat">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=2&frgb=000000&dd=E|df=x.dat">

These are the supplied digit styles. You can use digits from other sources. Just create a directory inside digits directory, rename the digits ro zero.gif, one.gif....nine.gif and use the directory name with dd.


Negate the colors

<img src="http://www.marketrends.net/cgi-bin/Count.cgi?netate=T&dd=A|df=x.dat">

Note that the digit color is negated but the frame is not.


Transparency

A specific color of the digits can be made transparent on the fly. Note the counter program do not care if your gif images are transparent or not, you have to tell explicitly which color to make transparent. Here we will make the white color of the digit style E transparent. We will not use any frame either, just to make it look simple.

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=E|ft=0|tr=T|trgb=ffffff">

You can use the RGB triplets for the color like:

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=E|ft=0|tr=T|trgb=255;255;255">

Make the black color of the digit style A transparent:

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=000000&df=x.dat">
    or
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=0;0;0&df=x.dat">
    or
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=black&df=x.dat">

Make the green color of the digit style A transparent:

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=00ff00&df=x.dat">
    or
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=0;255;0&df=x.dat">
    or
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=A|tr=T|trgb=green&df=x.dat">


Hide the counter

You can keep the counter hidden if you like. You can do this by sh=0. The hit will be recorded but the counter will not be displayed. A 1x1 transparent GIF image is written which gives the illusion. You can use the no-increment feature for monitoring those hits to a secret page (described later>

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?sh=0|df=x.dat">
A hiddes counter is up there.


Monitor counter hits

You might have kept your counter hidden (or not). You can monitor the hits from another page just specifying the datafile and the keyword incr=F
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?incr=F|df=page1.dat">
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?incr=F|df=page2.dat">
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?incr=F|df=page3.dat">


Number of digits

Say you want to display the counter in 5 digits only.
    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?md=5|df=x.dat">

or you do not want to left pad with zero, you want to display exact digits.

    <img src="http://www.marketrends.net/cgi-bin/Count.cgi?pad=0|df=x.dat">

Literal

You can display a digit string literally.
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?lit=0123456789">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=B&lit=0123456789">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=C|lit=0123456789">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?dd=D&lit=0123456789">
<img src="http://www.marketrends.net/cgi-bin/Count.cgi?ft=0&tr=1&trgb=ffffff|dd=E|lit=0123456789">

That's all folks! I hope you'll get enough clues from this page!