There are _many_ ways of doing the alt-color thing. Here is just one:

<table>
        <cfoutput query="foo">
                <tr bgcolor="##<cfif currentRow mod
2>ff0000<cfelse>00ff00</cfif>"><td>#moo#</td></tr>
        </cfoutput>
</table>

========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)

Email    : [EMAIL PROTECTED]
Blog     : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus

"My ally is the Force, and a powerful ally it is." - Yoda 

> -----Original Message-----
> From: Robert Orlini [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 03, 2003 1:56 PM
> To: CF-Talk
> Subject: code snippets
> 
> 
> I know this has probably been asked numerous times, but I 
> wonder if anyone has the CF code that alternates color on 
> rows in a table?
> 
> Also, does anyone have the CF(?) code that checks/verifies 
> whether a credit card number is entered correctly?
> 
> Thanks as usual.
> 
> Robert O.
> HWW 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. 
http://www.fusionauthority.com/ads.cfm

Reply via email to