Redirection based on Screen Resolution???
Redirection based on Screen Resolution???
I need a script so that when a user goes to a page it detects what screen resolution they are using and based on that redirects them to the corresponding page
Redirection based on Screen Resolution???
I need a script so that when a user goes to a page it detects what screen resolution they are using and based on that redirects them to the corresponding page
hotcut posted this at 17:09 — 3rd October 2000.
They have: 133 posts
Joined: Sep 2000
That can be done in javascript so... you are off topic... But I will help you anyway... Here is the script:
<script language="JavaScript">
if (window.screen.width >= 1024) {
URL = "1024.html";
}
else if (window.screen.width >= 800) {
URL = "800.html";
}
else if (window.screen.width >= 640) {
URL = "640.html";
}
location.href = URL;
</script>
Vincent Puglia posted this at 17:37 — 3rd October 2000.
They have: 634 posts
Joined: Dec 1999
Hi,
Please don't crossPost the same question.
Vinny
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.