|
|
| ANNOUNCEMENTS | SEARCH LAVANET | ||
07/02/09 LavaNet News and Announcements - Holiday hours for July 3 - 4, 2009.
LavaNet offices will be closed on July 3 - 4, 2009 with limited technical support from 9am - 5pm on Friday, July 3. All departments will be open on Monday, July 6 for normal business hours. |
|
|
CGI counters example
[edit] Frame Color and ThicknessA frame with a bluish color is wrapped by default. You have to use ft=0 to ignore this feature.
or you use can use the RGB triplets like:
[edit] Comma can be Displayed
[edit] Rotation<img src="/cgi-bin/Count.cgi?ft=0|rotate=Y|df=x.dat"> <img src="/cgi-bin/Count.cgi?ft=0°rees=180|df=x.dat"> <img src="/cgi-bin/Count.cgi?ft=0°rees=90"df=x.dat> The first counter is rotated default 270 degrees toward right, no angle is specified as rotate keyword is used.
[edit] Digit Styles<img src="/cgi-bin/Count.cgi?dd=A|df=x.dat"> <img src="/cgi-bin/Count.cgi?dd=B|df=x.dat"> <img src="/cgi-bin/Count.cgi?dd=B|frgb=69;139;116&df=x.dat"> <img src="/cgi-bin/Count.cgi?dd=C|df=x.dat"> <img src="/cgi-bin/Count.cgi?dd=D|ft=3|df=x.dat"> <img src="/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 the digits directory, rename the digits to zero.gif, one.gif....nine.gif and use the directory name with dd.
[edit] Change any colorChange green color to red: <img src="/cgi-bin/Count.cgi?df=x.dat|srgb=00ff00|prgb=ff0000">
[edit] Negate the colors<img src="/cgi-bin/Count.cgi?negate=T&dd=A|df=x.dat"> Note that the digit color is negated but the frame is not.
[edit] TransparencyA 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.
[edit] Hide the counterYou 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="/cgi-bin/Count.cgi?sh=0|df=x.dat"> A hidden counter is up there.
[edit] Monitor counter hitsYou 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="/cgi-bin/Count.cgi?incr=F|df=page1.dat"> <img src="/cgi-bin/Count.cgi?incr=F|df=page2.dat"> <img src="/cgi-bin/Count.cgi?incr=F|df=page3.dat">
[edit] Number of digitsSay you want to display the counter in 5 digits only.
[edit] LiteralYou can display a string literally. The valid characters in a string are 0123456789,:-ap <img src="/cgi-bin/Count.cgi?lit=0123456789"> <img src="/cgi-bin/Count.cgi?dd=B&lit=0123456789"> <img src="/cgi-bin/Count.cgi?dd=C|lit=0123456789"> <img src="/cgi-bin/Count.cgi?dd=D&lit=0123456789"> <img src="/cgi-bin/Count.cgi?ft=0&tr=1&trgb=ffffff|dd=E|lit=0123456789"> <img src="/cgi-bin/Count.cgi?lit=a1,456-:p">
[edit] Counter as clockDisplay time in 12 hr format.
|
![]() |
||
| Copyright © 2006 LavaNet, Inc. All rights reserved. | News | Support | Services | About Us | System Status | Webmail | Press Box | Privacy & Copyright | |