Re: Browser based content...
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 59567
interpreted = N
texte = I'm kinda running off the top of my head and pre-coffeee... but... the only thing I can see at first glance is that the variable setting and [hideif] stuff is redundant since you are using [if/then/else], so the code could be shorrtened like so:[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] [then]Good Menu[/then] [else]Other Menu[/else][/if]HTH -- Oh and I apologize ahead of time if I am on crack.-DanOn Fri, 08 Oct 2004 15:24:07 +0100 Alan White
wrote:>Hi Eveyone>>I know I have posted about this before and was told I could do it but can anyone see what is >wrong with this piece of code? I want to display one menu for all other browsers and one for mac >i5.2 because it is the spawn of satan.>>[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))]> [then][text]showgoodmenu=T[/text][/then]> [else][text]showgoodmenu=F[/text][/else]>[/if]>>[hideif [showgoodmenu]=F]> Good Menu>[/hideif]>>Example : http://www.hanon-shop.com/testarea/testmenu.html>>TIA>Alan>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
I'm kinda running off the top of my head and pre-coffeee... but... the only thing I can see at first glance is that the variable setting and [hideif] stuff is redundant since you are using [if/then/else], so the code could be shorrtened like so:[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))] [then]Good Menu[/then] [else]Other Menu[/else][/if]HTH -- Oh and I apologize ahead of time if I am on crack.-DanOn Fri, 08 Oct 2004 15:24:07 +0100 Alan White wrote:>Hi Eveyone>>I know I have posted about this before and was told I could do it but can anyone see what is >wrong with this piece of code? I want to display one menu for all other browsers and one for mac >i5.2 because it is the spawn of satan.>>[if (("[browsername]"^"MSIE")&("[browsername]"^"Mac_PowerPC"))]> [then][text]showgoodmenu=T[/text][/then]> [else][text]showgoodmenu=F[/text][/else]>[/if]>>[hideif [showgoodmenu]=F]> Good Menu>[/hideif]>>Example : http://www.hanon-shop.com/testarea/testmenu.html>>TIA>Alan>>>>------------------------------------------------------------->This message is sent to you because you are subscribed to> the mailing list .>To unsubscribe, E-mail to: >To switch to the DIGEST mode, E-mail to >Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
"Dan Strong"
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:
range searching (1998)
[WebDNA] ReturnRAW problem with Safari (2015)
well... (1997)
quotes and truncating? (1997)
Feedback on new features (2000)
Nested [tags] (2001)
is sku a REQUIRED field on NT (1997)
(1998)
Price problem (1997)
[AppendFile] problem (WebCat2b13 Mac .acgi) (1997)
WebCat Searchable archive (2000)
[WebDNA] install issues on Centos 6 (2017)
For those of you not on the WebCatalog Beta... (1997)
Major Security Hole IIS NT (1998)
Problems with [Applescript] (1997)
[WebDNA] Build Name for 6.1 (2008)
WC1.6 to WC2 date formatting (1997)
What am I missing (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
If Empty ? (1997)