Akopia Akopia Services

[Date Prev][Date Next][Thread Prev][Thread Next][Minivend by date ][Minivend by thread ]

Re: [mv] Find out which browser is used



******    message to minivend-users from Ed LaFrance <newmedia@newmediaems.com>     ******

At 08:38 AM 5/3/00 +0200, you wrote:
>******    message to minivend-users from "Mats Andersson" 
><Mats@brain.syh.fi>     ******
>
>Are there an easy way to find out inside HTML and on a MV page if a
>user is using NS or IE. Problem is that I have an outline system
>using
><DIV>:s and NS will not function if I put a
>style="text-decoration: none"
>inside an [area] tag but IE does.
>
>So a kludge would be to check which browser is used and then display
>different type of HTML code.
>
>Can it be done?

Put this inline Perl at the point in your page where the <div> should begin:

[perl arg=browser]
         $browser = $Safe{'browser'};
         if ($browser =~ /MSIE/){"Internet Explorer"}else{"Netscape"};
[/perl]

...and substitute the desired format of the <div> tag for the "Internet 
Explorer" and "Netscape" strings.

- Ed L.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| New Media E.M.S.		Software Solutions for Business |
| 12831 Blanco Ct.		Consulting			|
| Poway, CA  92064  U.S.A.	Custom Programming		|
| 858-486-6508			Internet and eCommerce		|
| 630-604-4265 eFax						|
| newmedia@newmediaems.com					|
| http://www.newmediaems.com					|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

-
To unsubscribe from the list, DO NOT REPLY to this message.  Instead, send
email with 'UNSUBSCRIBE minivend-users' in the body to Majordomo@minivend.com.
Archive of past messages: http://www.minivend.com/minivend/minivend-list


Search for: Match: Format: Sort by: