The screen resolution of Internet users is not all 800x600, and a considerable number of people are still using 640x480 resolution to surf the Internet, just imagine: you worked hard to
page in other people's browser to see will be unrecognizable.
This applet detects the resolution of the user when they enter the page, and then points to the corresponding page according to the resolution. Of course, you should
.
the page of 800x600 and 640x480 in advance respectively. Try it,really good!
Note: This example does not have a different resolution for the corresponding page, you can press the button below to see the prompts, you just understand the meaning can be.
the following code to join the <HEAD> area:
<script language= "JavaScript" >
<!--Begin
function Redirectpage () {
var url640x480 = "http://www.17357.net/640x480"; * * Remember to change the corresponding page
var url800x600 = "http://www.17357.net/800x600";
var url1024x768 = "http://www.17357.net/1024x768";
if ((screen.width = = 640) && (screen.height = = 480))
window.location.href= url640x480;
else if ((Screen.width = = && (screen.height = 600))
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service