How about

<tr bgcolor = "<cfif Dirlist.CurrentRow Mod 3 = 0>FirstColor<cfelseif
dirlist.currentrow mod 3 = 1>SecondColor<cfelse>ThirdColor</cfif>">

or

<tr bgcolor = "#IIF(DirList.CurrentRow Mod 3 = 0,
DE('FFFFE7'),IIf(DirList.CurrentRow Mod 3 = 1,
DE('FAFAFA'),DE('FFFFFF')))#">


Either way should work.

Chris Nebinger




-----Original Message-----
From: Jay Patton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 1:52 PM
To: CF-Community
Subject: any ideas?


does anyone know how i can make this tag output 3 colors instead of 2?

<tr bgcolor="#IIf(DirList.CurrentRow  Mod 2, DE('FFFFE7'), DE('FAFAFA'))#">

thanks,

Jay Patton
Web Pro USA
406.549.3337 ext. 203
1.888.5WEBPRO
www.webpro-usa.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to