Alternating Row Colors

This is an archive of old posting to the User Forum

Alternating Row Colors

Postby Scott Norman » Wed Jul 09, 2003 11:34 am

Has anybody done alternating row colors on products in a table?

Scott
Scott Norman
 

Re: Alternating Row Colors

Postby Gary Kennedy » Wed Jul 09, 2003 1:01 pm

This is one of the features in Ecom Assembler by StoneEdge
www.stoneedge.com.

Gary Kennedy
VP Internet

Marty Shoes Inc.
http://www.martyshoes.com
gkennedy@martyshoes.com

Marty Shoes Inc.
60 Enterprise Ave. N.
Secaucus, NJ 07094
Toll Free: 800-262-7897
Fax: 201-319-1446
"Scott Norman" <scott@yourhost.com> wrote in message
news:behnn8$49q$1@support.shopsite.com...
Has anybody done alternating row colors on products in a table?

Scott

Gary Kennedy
 

Re: Alternating Row Colors

Postby loren_d_c » Wed Jul 09, 2003 1:31 pm

Should be easy enough to do using VAR's in a custom page template.
Something like:


<table>
[-- VAR.CellColor "Color1" --] (where "Color1" is actually the color
you want to use)
[-- LOOP PRODUCTS --]
<tr>
<td bgcolor=[-- VAR.CellColor --]>
[-- PRODUCT --]
</td>
</tr>
[-- IF VAR.CellColor "Color1" --]
[-- VAR.CellColor "Color2" --]
[-- ELSE_IF VAR.CellColor "Color2" --]
[-- VAR.CellColor "Color1" --]
[-- END_IF --]
[-- END_LOOP PRODUCTS --]
</table>


The IF tags that cycle the colors could even be done inside the product
template if your wanted. Lots of ways to do it.

-Loren


Scott Norman wrote:

Has anybody done alternating row colors on products in a table?

Scott
loren_d_c
 
Posts: 2571
Joined: Fri Aug 04, 2006 12:02 pm
Location: Anywhere


Return to User Forum Archive

Who is online

Users browsing this forum: No registered users and 65 guests