I think there is also a custom tag called cf_tr that will provide this capability and 
you do not have to do any coding.
> 
> From: "Alford, Gary" <[EMAIL PROTECTED]>
> Date: 2002/01/29 Tue PM 01:02:04 CST
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: RE: Toggle table row color
> 
> <table>
>       <cfset RowID = 1>
>       <cfoutput>
>               <cfif RowID = 1>
>                       <tr bgcolor="red">
>                               <td>...data...</td>
>                       </tr>
>               <cfelse>
>                       <tr bgcolor="blue">
>                               <td>...data...</td>
>                       </tr>
>               </cfif>
>       
>               <cfif RowID = 1>
>                       <cfset RowID = 2>
>               <cfelse>
>                       <cfset RowID = 1>
>       </cfoutput>
> </table>
> 
> ============================================
> Gary L. Alford
> Supplier Product Assurance
> Bell Helicopter Textron
> Phone: (817) 280-6233
> Fax: (817) 278-6233
> mailto:[EMAIL PROTECTED]
> ============================================
> 
> 
> -----Original Message-----
> From: phumes1 [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 29, 2002 12:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Toggle table row color
> 
> 
> 
> Hi,
> 
> Anyone have any code that can toggle the color of each row within a table 
> being generated from a database?
> 
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> 
> -------------------------------------------------------------------------
> This email server is running an evaluation copy of the MailShield anti-
> spam software. Please contact your email administrator if you have any
> questions about this message. MailShield product info: www.mailshield.com
> 
> -----------------------------------------------
> To post, send email to [EMAIL PROTECTED]
> To subscribe / unsubscribe: http://www.dfwcfug.org
> 


-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com

-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org

Reply via email to