Ha! Very nice. ..:.:.:.:.:.:.:.:.:.:.:. Bobby Hartsfield http://acoderslife.com
-----Original Message----- From: Ian Skinner [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 29, 2006 11:51 AM To: CF-Talk Subject: RE: Challenging Loop problem SOLVED If you would like to display the colors in a circle: <div id="colorWheel"> <cfscript> for (deg = 0; deg LT listLen(colorList); deg = deg + 1) { xp = 250 + 200*cos(((((360/listLen(colorList))*deg)+270)*pi())/180); yp = 250 + 200*sin(((((360/listLen(colorList))*deg)+270)*pi())/180); writeOutput('<div style="width: 20px; height: 20px; background-color: ##' & ListGetAt(colorList,deg + 1) & '; position: absolute; top: ' & round(yp)-10 & 'px; left: ' & round(xp)-10 & 'px;"></div>' & chr(13) & chr(10)); } </cfscript> </div> -------------- Ian Skinner Web Programmer BloodSource www.BloodSource.org Sacramento, CA --------- | 1 | | --------- Binary Soduko | | | --------- "C code. C code run. Run code run. Please!" - Cynthia Dunning Confidentiality Notice: This message including any attachments is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender and delete any copies of this message. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting, up-to-date ColdFusion information by your peers, delivered to your door four times a year. http://www.fusionauthority.com/quarterly Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:262065 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

