Alternating table row colors...

Results 1 to 3 of 3

Thread: Alternating table row colors...

  1. #1
    Greg Z. Guest

    Default Alternating table row colors...

    I want to be able to have my dynamically created tables rows to alternate in color for each new row created in my table...<BR>ex:<BR>row 1 grey<BR>row 2 yellow<BR>row 3 grey<BR>row 4 yellow<BR>etc..etc..right now each row doubles...<BR>ex:<BR>row 1 grey<BR>row 1 yellow<BR>row 2 grey<BR>row 2 yellow<BR>etc..etc..any suggestions...p.s. i&#039m a beginner...<BR><BR>

  2. #2
    Franco Guest

    Default RE: Alternating table row colors...

    Try this:<BR><BR>x=0<BR>Do until rs.EOF<BR>If x=0<BR> &#039GREY ROW<BR> x=1<BR>Else<BR> &#039YELLOW ROW<BR> x=0<BR>Loop<BR><BR>Go for it. The GREY ROW/YELLOW ROW code, you can get by putting together a noddy table in FrontPage or Interdev and colouring it in manually.<BR><BR>Be cool.<BR><BR>Franco<BR>

  3. #3
    Gregz Guest

    Default RE: Alternating table row colors...

    Thanks for the idea...I try it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts