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:
Sort Order on a page search (1997)
remotely add + sign (1997)
Sandbox DB permissions (2005)
Running _every_ page through WebCat ? (1997)
[WriteFile] problems (1997)
Netscape Communicator 4 (1997)
Re[2]: php vs WebCatalog (2000)
Windows 2.1b2 Append Bug? (1997)
Copyright that puppy (1998)
[table] retained in memory (2006)
Database field limit? (1998)
WC2b12: Yes, Formulas.db is for real (1997)
European Convention... (2004)
Search in 2 or more catalogs (1997)
unable to launch acgi in WebCat (1997)
Dummy Credit Card Number for debug? (1997)
Two submit buttons ? (1997)
EIMS & emailer conflicts? (1999)
emailer (1997)
WebCommerce: Folder organization ? (1997)