Open each image file and print their content one after another and they will
be printed right.
Don't forget to use the right HTTP header for printing an image (image/gif).
And don't forget to open the files using binmode if you are under Windows.

But your program will be totally useless for the blind visitors that won't
be able to read that image on the screen.
A better idea would be to use server side includes and print a text hit
counter, or use Javascript to include the text generated by a CGI script if
your server doesn't accept SSI.

Teddy


----- Original Message ----- 
From: "Andrew Gaffney" <[EMAIL PROTECTED]>
To: "Jon Barnhardt" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, November 11, 2003 7:58 PM
Subject: Re: hit counter


> 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
> >


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

Reply via email to