That will work, but I'd like to combine them into one image if possible.

Jon Barnhardt wrote:
name your gifs 1.gif, 2.gif 3.gif 4.gif, etc
once you have your number stored in a variable (hit count), split it into an array then loop through the array and append the .gif to the number and write the path to page as an image source.
Logic:
myvariable = 12536 <-- hit count amount
myarray = myvariable split by number
for i = 0 to end of array
"<img src>" & myarray(i) & ".gif</img src>"
next
I am mostly a vb programmer so the syntax will have to be converted to your language of choice but the logic still stands
hope that helps Jon


-----Original Message----- From: Andrew Gaffney [mailto:[EMAIL PROTECTED] Sent: Tue 11/11/2003 12:55 AM To: [EMAIL PROTECTED] Cc: Subject: hit counter



        I want to write a CGI in perl that when called, grabs a number from a MySQL db 
or a file,
        increments it, writes the number back out, and then returns a GIF with that 
number. I want
        to have 10 separate GIFs, each one containing an image (that I have created to 
match the
        site design) of a number, 0-9. I need to be able to piece together any number 
of these
        GIFs from left to right into one large (relatively) GIF. I know how to do 
everything but
        actually create the GIF. Can anyone point me in the right direction?


--
Andrew Gaffney


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to