<cfloop query="MyQuery">

  <!--- set var(s) for alternating row colour --->
  <cfset TextBack = iif(currentrow mod 2, DE("blue"), DE("green"))> 

  <tr>
    <td bgcolor="#TextBack#">gsgssd</td>
  </tr>

</cfloop>


Bryan Stevenson
VP & Director of E-Commerce Development
Electric Edge Systems Group Inc.
p. 250.920.8830
e. [EMAIL PROTECTED]
---------------------------------------------------------
Macromedia Associate Partner
www.macromedia.com
---------------------------------------------------------
Vancouver Island ColdFusion Users Group
Founder & Director
www.cfug-vancouverisland.com

----- Original Message ----- 
From: "Justin Hansen" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Monday, March 18, 2002 10:51 AM
Subject: RE: alternating rows


> This is what I use...
> 
> <tr<cfif qryName.currentrow mod 2 EQ 0> class="altRow"</cfif>>
> 
> Justin Hansen
> --------------------------
> Uhlig Communications
> Web Developer / Programmer
> --------------------------
> [EMAIL PROTECTED]
> 913-498-0123 ext 284
> --------------------------
> 
> -----Original Message-----
> From: Tangorre, Michael T. [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 18, 2002 12:31 PM
> To: CF-Talk
> Subject: alternating rows
> 
> 
> Does anyone remember the quick way to alternate row colors when using MOD on
> a recorcount?
> 
> Mike
> 
> 
______________________________________________________________________
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
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to