[Zope] Different row colors

Todd Loomis tloomis@dmso.mil
Mon, 01 Oct 2001 15:53:00 -0400


All:

I'm trying to create two different background colors for my rows. Here is 
what I'm currently using:

<dtml-var standard_html_header>
<h2>News Briefs</h2>
<table cellpadding="5" cellspacing="0" border="0" width="100%">
<dtml-with "ebird">
<dtml-in "objectValues('Ebird')" sort=display_order>
<dtml-if expr="end_date > ZopeTime() and start_date <= ZopeTime()">
<dtml-if sequence-even>
<tr>
<td class="whitebody"><a href="ebird/<dtml-var id>"><dtml-var title></a></td>
</tr>
<dtml-else>
<tr>
<td class="graybody"><a href="ebird/<dtml-var id>"><dtml-var title></a></td>
</tr>
</dtml-if>
</dtml-if>
</dtml-in>
</dtml-with>
</table>
<dtml-var standard_html_footer>

But this seems to group some of the backgrounds together when I want to 
have every other row a different color (white, gray). Can this be done 
another way?

Thanks,
Todd