And if you have CF 5 you can turn that into a udf and make your code much
more readable
<cfscript>
function bc(i){
return IIf(i Mod 2, DE('ffffff'), DE('dededf'))
}
</cfscript>
...
<tr bgcolor=#bc(currentrow)# ......>
----- Original Message -----
From: "Clint Tredway" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 1:08 PM
Subject: Re: Alternating BG colors on a <TD>
> Use this:
> <tr bgcolor="#IIf(CurrentRow Mod 2, DE('ffffff'), DE('dededf'))#"
valign="top">
>
> ---------- Original Message ----------------------------------
> from: Chad Gray <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> date: Tue, 21 Aug 2001 14:39:12 -0400
>
> I have done this in the past, but cant remember how i did it.
>
> When using a <CFOUTPUT QUERY=""> tag on a table how do i get every other
> <TD> to have a background color?
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
Re: Alternating BG colors on a
Don Vawter
Tue, 21 Aug 2001 13:21:51 -0700
- Re: Alternating BG colors on a <TD> Clint Tredway
- RE: Alternating BG colors on a <TD> Don Vawter
- RE: Alternating BG colors on a <TD> Carlisle, Eric
- RE: Alternating BG colors on a <TD> Nate Smith
- RE: Alternating BG colors on a <TD> Dan G. Switzer, II
- RE: Alternating BG colors on a <TD> Kevin Mansel
- RE: Alternating BG colors on a <TD> Sicular, Alexander
- RE: Alternating BG colors on a <TD> Carlisle, Eric
- RE: Alternating BG colors on a <TD> Raymond Camden
- RE: Alternating BG colors on a <TD> Nate Smith
- RE: Alternating BG colors on a <TD> Jann VanOver
Reply via email to
Don Vawter Tue, 21 Aug 2001 13:21:51 -0700
- Re: Alternating BG colors on a <TD> Clint Tredway
- RE: Alternating BG colors on a <TD> Don Vawter
- RE: Alternating BG colors on a <TD> Carlisle, Eric
- RE: Alternating BG colors on a <TD> Nate Smith
- RE: Alternating BG colors on a <TD> Dan G. Switzer, II
- RE: Alternating BG colors on a <TD> Kevin Mansel
- RE: Alternating BG colors on a <TD> Sicular, Alexander
- RE: Alternating BG colors on a <TD> Carlisle, Eric
- RE: Alternating BG colors on a <TD> Raymond Camden
- RE: Alternating BG colors on a <TD> Nate Smith
- RE: Alternating BG colors on a <TD> Jann VanOver

