Two more ways to skin this cat.  First a real old one

<tr bgcolor="#iif(GetData.CurrentRow MOD 2, DE(variables.RowColor1),
DE(variables.RowColor2))#">

and what I use now.  Store the row colors in a var in application.cfm
or something:
my.RowColors="##EDEDED,##FBFBFB";

and then use this in the table:
<tr bgcolor="#listgetat(my.RowColors,(GetData.CurrentRow MOD 2)+1)#">

No clue as to their relative efficiency to other things posted here. 
I suppose the second method could accomodate more than two colors
without difficulty.  Just add one to the var and change the MOD
factor.

-- 
--Matt Robertson--
President, Janitor
MSB Designs, Inc.
mysecretbase.com

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Purchase from House of Fusion, a Macromedia Authorized Affiliate and support the CF 
community.
http://www.houseoffusion.com/banners/view.cfm?bannerid=37

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:183185
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to