ASP Image Counter

 

 

 

The ASP Image Counter uses VBScript and a Visual Basic Active X library to create an image counter similar to those from www.thecounter.com. Parts of two images are combined to return a single image.

Each counter consists of 4 files. The background image, like the one below, is the main image of the counter image.

The numbers image is a strip of numbers, from 0 to 9, in that order. The digits in the number image must be the same size as the rest of the digits. For example, a numbers image 90 pixels wide would consist of 10 digits, each 9 pixels wide.

The counter file (example: dos.cnt) is where the counter value is stored. This file must have read and write permissions set.

The ASP page (example: dos.asp) is the file which returns the binary image to your page. It also contains settings allowing you to create more than one counter as well as configure each counter individually.

You will link to the ASP counter page as if it were an image. Be sure that the above 4 files are kept in the same directory on your server. Also, the ImgCounter.dll must be registered on your system. If you have any questions or comments, feel free to contact me.

Chad J. Cox
chad@dosfx.com
www.dosfx.com