Redirection based on Screen Resolution???

They have: 16 posts

Joined: Jun 2000

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

Vincent Puglia's picture

They have: 634 posts

Joined: Dec 1999

Hi Ijustgotplayed,

Noticed your post in the "other scripting languages" section. Do not crossPost.

screen.width & screen.height (as well as screen.availWidth & screen.availHeight) give you the surfer's display dimensions. You can use them to set up a series of if/else's to redirect to the proper page. For example:

if(screen.width == '600' && screen.height == '800) location.href="res600.html";

Vinny

[Edited by Vincent Puglia on 10-03-2000 at 01:35 PM]

Where the world once stood
the blades of grass cut me still

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.