Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[ALLY] Re: Ready-to-use graphiacal web counter ?

From: joel:neely:fedex at: 22-Jun-2001 14:17

Hi, Jean, Holzammer, Jean wrote:
> I wonder if someone here has already made a graphical > webcounter I could use. > For each chiffre (0..9) a separate image file should exist > (0.png...9.png). A function should exist that gets a number > (125351) representing the current count as input and produces > an image or image file showing a graphical > representation of this number. >
The quick-and-dirty way to do this without constructing a graphical image for each hit is to have the separate digit images (as you mentioned above) and compose a table which has all of the appropriate digit images side by side. For example, for hit number 1046, you'd construct this: 8<-------------------------------------------------------------------- <table cellpadding=0 cellspacing=0 border=0 width=100%> <tr> <td align=left>contact info or whatever...</td> <td align=right><img src="1.png"><img src="0.png"><img src="4.png"><img src="6.png"><img src="hits.png"></td> </tr> </table> 8<-------------------------------------------------------------------- (Pardon the wrapped line -- set off by blank lines -- but it's necessary, for the following reason.) Placing the image tags consecutively without intervening whitespace (including linebreaks) causes them to display without gaps. For all practical purposes, the visitor can't tell (without viewing the html source) any difference between this and a dynamically- constructed image containing all the digits in one .png file. -jn- It's turtles all the way down! joel'dot'neely'at'fedex'dot'com