<cfset myCounter = 1234>
<cfset numberLenght = len(myCounter)>
<cfloop index="i" from="1" to="#numberLength#">
<img src="<cfoutput>#mid(myCounter,i,1)#</cfoutput>.gif">
<cfloop>
I didn't tested but should work if your images are named 1.gif, 2.gif etc
-steve
-----Original Message-----
From: Chad Bohnert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 19, 2002 1:17 PM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Breaking down a number
I have a hit counter that is returning the number of pages views. I want to
take the number that is returned and convert it in to a graphic. So what I
am trying to find out is a way to take a number like 1234 and break it down
in to 4 parts, keeping the order. That way with if statements I can plug in
graphics for the numbers.
Any Ideas?
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: "Chad Bohnert" <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)
-
You are subscribed to the CFUGToronto CFTALK ListSRV.
This message has been posted by: Steve Budan <[EMAIL PROTECTED]>
To Unsubscribe, Please Visit and Login to http://www.CFUGToronto.org/
Manager: Kevin Towes ([EMAIL PROTECTED]) http://www.CFUGToronto.org/
This System has been donated by Infopreneur, Inc.
(http://www.infopreneur.net)