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:
SiteGuard Admin Feature ? (1997)
Performance Issue (2000)
synching databases on multiple servers (1997)
Empty fields delete-able? (2000)
Sku numbers (1997)
Bug? (1997)
WebMerchant Question (1998)
Hello??? (1997)
Item order (2002)
Server problem? (1998)
Problems with ^ could be solved with [REPLACE CHARACTERS] (1997)
file truncation -- Mac plugin (2000)
Major bug report on rootbeer (1997)
Email problem (1998)
View order not right (1997)
Date search bug (1997)
[ELSEIF] was hideif [x]=1,2,3..: (2003)
Thanks Grant (1997)
looping table rows (1999)
First Attempts (2000)