[thelist] alternating row colors w/out using .php

Cymbala, Greg Greg.Cymbala at Den.Galileo.com
Fri Jun 28 17:07:07 CDT 2002

Here's an ASP sample from another list:

how about something like:

-- declare some styles:
   .odd {
      background-color : blue;

   .even {
      background-color : red;

-- before the loop..
   dim bToggle
   bToggle = True

-- as you are looping through the records creating your table
   if bToggle then
      strTable = strTable & "<tr class=""odd"">"
      strTable = strTable & "<tr class=""even"">"
   end if


   bToggle = Not bToggle

The information in this electronic mail message is sender's business
Confidential and may be legally privileged.  It is intended solely for the
addressee(s).  Access to this Internet electronic mail message by anyone
else is unauthorized.  If you are not the intended recipient, any
disclosure, copying, distribution or any action taken or omitted to be taken
in reliance on it is prohibited and may be unlawful.
The sender believes that this E-mail and any attachments were free of any
virus, worm, Trojan horse, and/or malicious code when sent. This message and
its attachments could have been infected during  transmission. By reading
the message and opening any attachments, the recipient accepts full
responsibility for taking protective and remedial action about viruses and
other defects. Galileo International is not liable for any loss or damage
arising in any way from this message or its attachments.

More information about the thelist mailing list