Re: turning every 5th line red
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 22110
interpreted = N
texte = Mike,You might want to try something like this:[math show=f]inc=0[/math][founditems][math show=f]inc=inc + 1[/math][showif [math]floor(inc/5)[/math]=[math]inc/5[/math]]
[/showif][/founditems]Mike Jones wrote:> Hi. I have a field called [details]> When I display details I want the 1st, 5th, and 10th lines to be red.>> What is the easiest way to do this?>> I know that I could html code it in the details field in the database,> but I thought there might be an easier way to do it in webdna.>> Maybe something like counting the lines and a showif on the 1st, 5th and> 10th with >> thanks in advance.>> ______________________________________________________> Get Your Private, Free Email at http://www.hotmail.com
Associated Messages, from the most recent to the oldest:
Mike,You might want to try something like this:[math show=f]inc=0[/math][founditems][math show=f]inc=inc + 1[/math][showif [math]floor(inc/5)[/math]=[math]inc/5[/math]][/showif][/founditems]Mike Jones wrote:> Hi. I have a field called [details]> When I display details I want the 1st, 5th, and 10th lines to be red.>> What is the easiest way to do this?>> I know that I could html code it in the details field in the database,> but I thought there might be an easier way to do it in webdna.>> Maybe something like counting the lines and a showif on the 1st, 5th and> 10th with >> thanks in advance.>> ______________________________________________________> Get Your Private, Free Email at http://www.hotmail.com
John Winningham
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:
WebCatalog2 Feature Feedback (1996)
WebDNA HitLogger available (was Signal Raised Error) (1997)
Extra equals signs with IE? (More debugging questions...) (1997)
Help! WebCat2 bug (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
WebMerchant and PCAuthorize (1998)
listfile options (1997)
FM PRO Compatibility Issue - Single Database w/oConversions (1997)
Plugin or CGI or both (1997)
[WebDNA] HTTP Streaming -- impossible? (2010)
RE: 2nd WebCatalog2 Feature Request (1996)
WebCatalog 4.0 has been released! (2000)
Explorer 3.0 (1997)
More Applescript (1997)
Fwd: Problem with order (1998)
Web Catalog Instability (2000)
Wanted: More Math Functions (or, Can You Solve This?) (1997)
autosensing lanague selection (1997)
Location of Browser Info.txt file (1997)
[OT] Might be of interest... (2006)