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 "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.

Tanx! This was really neat. I solved the problem using an other 
approach but this perl routine will go in the archive.

Rgrds

- Mats

Soft Brains Ab Oy
0500-661356

Pie Iesu domine, dona eis requiem....[bonk]
-
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: