Home--> Articles -->Site Tools

Display pages according to the client navigator

Post By zjj123003 on 2008-9-26 15:56:43  [Reads:107]


Display pages according to the client navigator

Because of some functionalities (leaves of styles, ActiveX components, iframes, etc.), you can be brought to publish two versions of one page (HTML).

To determine what page will be the most suitable to the navigator used by your visitor, here is a small simple script to put in work.

We will use an ASP page to reorient the customer:

toward the ie.htm page if the navigator is Internet Explorer 4 or superior,

toward the other.htm page if the navigator is other.

<% Set Navigator = Server.CreateObject ("MSWC.BrowserType") CInt(Navigateur.majorver yew) < 4 Response.Redirects then ("other.htm") Else Response.Redirect ("ie.htm") end yew Set Navigator = Nothing% >

Sponsor Sites

Free Articles


Categories