Try something like this
<cfset rowcolor1="000000">
<cfset rowcolor2="FFFFFF">
<cfset bgcolor1="">
<table>
<cfoutput query="blah">
<cfif bgcolor1 is "#RowColor2#">
<cfset bgcolor1 = "#RowColor1#">
<cfelse>
<cfset bgcolor1 = "#RowColor2#">
</cfif>
<tr bgcolor="#bgcolor1#">
<td>
blahblahblah
</td>
</tr>
</cfoutput>
</table
Steven D Dworman
-------------------------------------------------------------------------
Web Consultant
Systems Administrator
ComSpec International - http://www.comspec-intnl.com
phone: 248.647.8841
cell: 734.972.9676
-------------------------------------------------------------------------
EMPOWER-XL ***Software for Higher Education***
http://www.empower-xl.com
-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 2:39 PM
To: CF-Talk
Subject: Alternating BG colors on a <TD>
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
Steven Dworman
Fri, 24 Aug 2001 07:44:33 -0700
- Storing complex data types Aidan Whitehall
- RE: Storing complex data types Brent Goldman
- RE: Storing complex data types Rich Wild
- Longish comments on XML... was RE: Storing co... Dick Applebaum
- Re: Longish comments on XML... was RE: St... Joseph Thompson
- Alternating BG colors on a <TD> Chad Gray
- RE: Alternating BG colors on a &... John Wilker
- RE: Alternating BG colors on a &... Bill King
- RE: Alternating BG colors on a &... Rick Osborne [Mojo]
- Re: Longish comments on XML... w... Steven Dworman
- Re: Longish comments on XML... was RE... Dick Applebaum
- RE: Storing complex data types Aidan Whitehall
Reply via email to
Steven Dworman Fri, 24 Aug 2001 07:44:33 -0700
- Storing complex data types Aidan Whitehall
- RE: Storing complex data types Brent Goldman
- RE: Storing complex data types Rich Wild
- Longish comments on XML... was RE: Storing co... Dick Applebaum
- Re: Longish comments on XML... was RE: St... Joseph Thompson
- Alternating BG colors on a <TD> Chad Gray
- RE: Alternating BG colors on a &... John Wilker
- RE: Alternating BG colors on a &... Bill King
- RE: Alternating BG colors on a &... Rick Osborne [Mojo]
- Re: Longish comments on XML... w... Steven Dworman
- Re: Longish comments on XML... was RE... Dick Applebaum
- RE: Storing complex data types Aidan Whitehall

