Displaying Source Code(s)
|
|
--------------------------------------------------------------------------------
Text to Images
--------------------------------------------------------------------------------
Description : Got your own nifty asp hit counter(maybe my unique
hit counter)? still in text though?? Here is the solution!! Just
add the function below, and pass the number of hits to it, and
boom, it displays the images. The only catch is you have to make
your own images, darn...
Function DisplayImg(intNum)
Dim itmCur, tmpCur
Response.Write "<Img src='images/cnt_start.gif'>"
For itmCur = 1 To Len(intNum)
tmpCur = Mid(CStr(intNum), itmCur, 1)
Response.Write "<Img src='images/cnt_" & tmpCur & ".gif'>"
Next
Response.Write "<Img src='images/cnt_end.gif'>"
End Function
|
|
|