CyberGuru
09-26-2001, 04:52 PM
I'm creating my own shopping cart in ColdFusion, but I've hit a small snag. How do I get table rows to alternate background colors using the CFOUTPUT tag?
Thanks,
~CG
Thanks,
~CG
|
Time:
Altrincham
Las Cruces Dona Ana Realtor's Network
Las Cruces homes for sale
Las Cruces New Mexico
Thermostatic Showers
Selanac Embroidery and Screen Printing
Embroidery Screen Printing Signs and Banners Promotional Advertising WEBSITE Contact Paul Canales TEl: USA 732-901-8417 CELL: USA 732-773-1339
|
For continued disscussion on this topic : Shopping Cart CyberGuru 09-26-2001, 04:52 PM I'm creating my own shopping cart in ColdFusion, but I've hit a small snag. How do I get table rows to alternate background colors using the CFOUTPUT tag? Thanks, ~CG jonsteele 09-26-2001, 10:57 PM Try something like: (assuming you have a query) <cfoutput query="MyQuery"> <tr bgcolor="#IIf(CurrentRow MOD 2,DE('blue'),DE('red'))#"><td>#Column#</td></tr> </cfoutput> You can replace blue and red with the colors you want. You can also do the same thing with a loop (using the counter index instead of CurrentRow). Jon vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.
|