Re: Alternating colors
This WebDNA talk-list message is from 1997
It keeps the original formatting.
numero = 11171
interpreted = N
texte = >I want to have the results of found items alternate the backaground color>example:>>item 1 - white background>item 2 - green background>item 3 - white background>item 4 - green backgroundUse [ShowIf] and a 'divisible by' operation to compare the index of the found item to see if it's an even or odd number.[foundItems][showif [index]\2]Green[/showif][hideif [index]\2]White[/hideif][/foundItems]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Associated Messages, from the most recent to the oldest:
>I want to have the results of found items alternate the backaground color>example:>>item 1 - white background>item 2 - green background>item 3 - white background>item 4 - green backgroundUse
[showif] and a 'divisible by' operation to compare the index of the found item to see if it's an even or odd number.
[founditems][showif [index]\2]Green[/showif][hideif [index]\2]White[/hideif][/foundItems]Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors =====Pacific Coast Software | WebCatalog Pro, WebCommerce Solution11770 Bernardo Plaza Court, #453 | SiteEdit Pro, SiteCheck, PhotoMasterSan Diego, CA 92128 | SiteGuard619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com
Grant Hulbert
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:
[IpAddress] Tag (1997)
[showif] not working (2003)
converted seed value? (1998)
ODBC problems between webcatalog and filemaker pro (2001)
Summary layout (1997)
Runnaway Trigger (2007)
WebCat2: multiple currency support (1997)
Help- Spam Bots are spamming my site. (2007)
WebCat2b15MacPlugIn - [authenticate] not [protect] (1997)
Hiding HTML and breaking the page (1997)
&fieldsdir=ra truely random?? (2000)
A question on sub-categories (1997)
Date problems-more (1997)
Running 2 two WebCatalog.acgi's (1996)
Slow NT mail. (2000)
HTML Email and Images (2004)
Problems reading files created by WC (1997)
[sendmail] on NT? (1997)
bug in [SendMail] (1997)
Re2: Calculating multiple shipping... (1997)