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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://www.webdna.net
Associated Messages, from the most recent to the oldest:
>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 Grome808-737-6499WebDNA Solutionsmailto:ken@webdna.nethttp://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:
A better WebCat whois (was [OT] Domain Name Scam) (2000)
PSC recommends what date format yr 2000??? (1997)
[WebDNA] Carriage Return/Line Feed Issue (2009)
[OT] Snow Ctd. :) (2004)
Nested tags count question (1997)
Make sure I understand this??? (1997)
wc 2 pro users - sites, quotes wanted (1997)
Filemaker Pro Template for Orders (1999)
triggers (2003)
Shell on MacOSX (2004)
Wierd thing in ViewOrder.tpl (1999)
WC2.0 Memory Requirements (1997)
feature request.... [stop] (2000)
WC2b15 File Corruption (1997)
More on the email templates (1997)
Add a field to the error log? (1997)
Problem displaying search result (1997)
WebCat2b15MacPlugin - showing [math] (1997)
Errata: WCS Newbie question (1997)
Emailer problem (1998)