Whoops! You're right. That's what I get for cutting and pasting. Nice catch. Nate -----Original Message----- From: Dan G. Switzer, II [mailto:[EMAIL PROTECTED]] Sent: Tuesday, August 21, 2001 4:01 PM To: CF-Talk Subject: RE: Alternating BG colors on a <TD> Nate, No need to use the Evaluate() function--it'll just slow you down: BGCOLOR="#stColor[QueryName.CurrentRow MOD 2]#" -Dan > -----Original Message----- > From: Nate Smith [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, August 21, 2001 3:17 PM > To: CF-Talk > Subject: RE: Alternating BG colors on a <TD> > > By using the mod function on queryname.CurrentRow. > > Create this struct to hold your two color values. > <CFSCRIPT> > stColor = STRUCTNEW(); > stColor[0] = '##FFFFFF'; > stColor[1] = '##CCCCCC'; > </CFSCRIPT> > > Then place this code inside of each td: > BGCOLOR="#EVALUATE("stColor[QueryName.CurrentRow MOD 2]")#" > > - > Nate Smith ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 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
Nate Smith
Tue, 21 Aug 2001 13:24:11 -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
Nate Smith Tue, 21 Aug 2001 13:24:11 -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

