Re: Is there an easier way?
This WebDNA talk-list message is from 1998
It keeps the original formatting.
numero = 21400
interpreted = N
texte = Try this:
![](images/l_nav_listhome[ShowIf
[S_NAME]=ListHome]_on[/ShowIf][HideIf)
To make things even simpler, you could remove the _off suffix from thatset of images, and just do
![](images/l_nav_listhome[ShowIf
[S_NAME]=ListHome]_on[/ShowIf].gif)
-DaveAt 4:19 PM 11/30/98, charles kline wrote:>Hi everyone.>>I am using this code here and was wondering if there was an easier way to>accomplish the same thing. I would realy like to so something like this:>>[if [S_NAME]=ListHome]
![](someimage.gif)
[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>
![](images/l_nav_down_arrow.gif)
border=0>
>[hideif [S_NAME]=ListHome]
![](images/l_nav_listhome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]
![](images/l_nav_listhome_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]
![](images/l_nav_houseplans_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]
![](images/l_nav_mortages_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/hideif]>[showif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/showif]>[hideif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/showif]>>>_______________________________________________________________>Charles Kline ckline@macsultants.com>>>MacSultants>Professional Solutions for Computer Systems>>Phone# 609-273-3255>Fax# 609-273-3721o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Associated Messages, from the most recent to the oldest:
Try this:
![](images/l_nav_listhome[ShowIf
[S_NAME]=ListHome]_on[/ShowIf][HideIf)
To make things even simpler, you could remove the _off suffix from thatset of images, and just do
![](images/l_nav_listhome[ShowIf
[S_NAME]=ListHome]_on[/ShowIf].gif)
-DaveAt 4:19 PM 11/30/98, charles kline wrote:>Hi everyone.>>I am using this code here and was wondering if there was an easier way to>accomplish the same thing. I would realy like to so something like this:>>[if [S_NAME]=ListHome]
![](someimage.gif)
[else]
![]()
src=someimage.gif>[/if]>>>this is what I do have though...>>>
![](images/l_nav_down_arrow.gif)
border=0>
>[hideif [S_NAME]=ListHome]
![](images/l_nav_listhome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=ListHome]
![](images/l_nav_listhome_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=SearchHomes]
![](images/l_nav_search_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=NewHomeComm]
![](images/l_nav_nhcomm_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomePlans]
![](images/l_nav_houseplans_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=Mortgages]
![](images/l_nav_mortages_on.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeEqLoan]
![](images/l_nav_homeequity_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeIns]
![](images/l_nav_homeins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=HomeWrnty]
![](images/l_nav_homewrnty_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=TitleIns]
![](images/l_nav_titleins_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=FindContr]
![](images/l_nav_findcontr_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CreditRep]
![](images/l_nav_creditrep_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/hideif]>[showif [S_NAME]=CompHome]
![](images/l_nav_comphome_off.gif
)
width=132 height=13 border=0>
[/showif]>[hideif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/hideif]>[showif [S_NAME]=RealEstateNews]
![]()
src=images/l_nav_realestate_off.gif width=132 height=13>border=0>
[/showif]>[hideif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/hideif]>[showif [S_NAME]=OtherServ]
![](images/l_nav_otherserv_off.gif
)
width=132 height=13 border=0>[/showif]>>>_______________________________________________________________>Charles Kline ckline@macsultants.com>>>MacSultants>Professional Solutions for Computer Systems>>Phone# 609-273-3255>Fax# 609-273-3721o--------------- Dave MacLeay --+o----------- Digital Frontier --+o--------------- 802.253.8612 --+o--- dave@digitalfrontier.com --+
Dave MacLeay
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:
Multiple prices (1997)
ShowNext Questions (2000)
BGcolor (1997)
WebCatalog for guestbook ? (1997)
FlushDatabase Suggestion (1998)
Major bug report on rootbeer (1997)
problems with 2 tags (1997)
[isfolder] and [filename] (1997)
WebDNA Verison 4.5 will Not Restart! This SUCKS! (2002)
StandardConversions.db (1998)
Extended [ConvertChars] (1997)
Problem with webcat install (1998)
select multiple (1997)
Multiple instances of database (2003)
[listfiles] nested in a [loop] (1998)
Here we go again... (2006)
Encryption method used for [encrypt]? (2000)
Subtotal Not Calculated on Invoice.html (1998)
input type=file has no value? (2003)
Accented chars and emailer (1998)