Re: Alternating BGColors in Table Rows

This WebDNA talk-list message is from

1998


It keeps the original formatting.
numero = 16968
interpreted = N
texte = >I know this has been asked and answered many times - and of course I did >not pay attention to the answers, so... > >I am trying to return a list of founditems in a search and the results are >in a table, each item on its own table row, and I wish to have the bgcolor >of the rows alternating, so the odd number (1,3,5,7, etc.) rows would be >one color then the even rows would be another (2,4,6,8, etc.). > >Do I use [ShowIf] , [Loop] or something esle?Use:[showif [index]/2]oneColor[/showif] [hideif [index]/2]theOtherColor[/hideif]Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Associated Messages, from the most recent to the oldest:

    
  1. Re: Alternating BGColors in Table Rows (PCS Technical Support 1998)
  2. Re: Alternating BGColors in Table Rows (Britt T. 1998)
  3. Re: Alternating BGColors in Table Rows (Kenneth Grome 1998)
  4. Re: Alternating BGColors in Table Rows (Bob Minor 1998)
  5. Alternating BGColors in Table Rows (Britt T. 1998)
>I know this has been asked and answered many times - and of course I did >not pay attention to the answers, so... > >I am trying to return a list of founditems in a search and the results are >in a table, each item on its own table row, and I wish to have the bgcolor >of the rows alternating, so the odd number (1,3,5,7, etc.) rows would be >one color then the even rows would be another (2,4,6,8, etc.). > >Do I use [showif] , [loop] or something esle?Use:[showif [index]/2]oneColor[/showif] [hideif [index]/2]theOtherColor[/hideif]Sincerely, Ken Grome 808-737-6499 WebDNA Solutions mailto:ken@webdna.net http://www.webdna.net Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

For those of you not on the WebCatalog Beta... (1997) problems with 2 tags (1997) WebCat2_Mac RETURNs in .db (1997) Creating a back button (1999) Shipping Math (1999) Databases.tpl (2000) Calendar Program (2004) Searching Numbers (2004) [OT] Local San Diego SIGs (2003) Webcat 2.0.1 date math bug -> Crash! (1997) Append File help needed (2000) No Line Breaks from OSX server (2002) Country & Ship-to address & other fields ? (1997) Protect (1997) 2.0 Info (1997) credit card authorization question (1997) WebCat2final1 crashes (1997) catagories (1997) retain raw [cart] submitted value (2004) how to set up error log (2004)