Time:
Scotland: Sat, 6:50 am
Rhode Island: Sat, 1:50 am
Florida: Sat, 1:50 am
New Mexico: Fri, 11:50 pm
California: Fri, 10:50 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

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


Please click here for more information


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