image counters

Results 1 to 2 of 2

Thread: image counters

  1. #1
    Join Date
    Dec 1969

    Default image counters

    how do I add images in counters in my asp pages by using gif images from 0-9.<BR>please help

  2. #2
    Join Date
    Dec 1969

    Default RE: image counters

    get your figure i.e 27654<BR><BR>convert it to a string<BR><BR>loop through it a character at a time, writing the appropriate image for each character<BR><BR>in JScript you&#039d use<BR><BR>in = 27654<BR><BR>str = in.toString()<BR><BR>for(x=0;x&#060;str.length;x++ ) {<BR> Response.Write(&#039&#060;img src="&#039 + str.charAt(x) + &#039.gif" /&#062;&#039);<BR>}<BR><BR>not 100% sure about the VBScript version<BR><BR>j

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts