Resolution | client
In the Web development process, we often need to understand some of the client's display features to better prepare the application, in which the screen resolution of the client computer is a very important issue, because the resolution is not correct, we may be scheduled to display a disorderly seven or eight of the page, now good, You can use ASP to determine the resolution of the user's screen and to guide the appropriate page.
Please take a look at this small program below.
Determine the client's screen resolution primarily using Http_ua_pixels this server variable.
* Determine the client resolution.
<% @language = "VBScript"%>
<%
Select Case Request.ServerVariables ("Http_ua_pixels")
Case "800x600."
Response.Redirect "800.htm"
Case "640x480"
Response.Redirect "640.htm"
Case "1024x768"
Response.Redirect "1024.htm"
End Select
%>
What, is it simple? There is no longer a need to worry about not knowing the client's resolution.