View Single Post
Old 07-01-2002, 07:51 PM   PM User | #2
Jeepers
Regular Coder

 
Join Date: Jun 2002
Location: Conwy. UK
Posts: 122
Thanks: 0
Thanked 0 Times in 0 Posts
Jeepers is an unknown quantity at this point
screen.width gives the horizontal resolution and screen.height gives vertical resolution.

var scrWidth = screen.width;
var scrHeight= screen.height;
if (scrWidth=800 && scrHeight=600) {top.location.href="800X600 page"}
else
if (scrWidth=1024 && scrHeight=768) {top.location.href="1024X768 page"}

etc etc

This will get the screen resolution and then redirect to the correct page for that resolution. You may also have to think about the browser window size. You can detect this by:
Netscape ~ window.innerWidth and window.innerHeight
IE ~ document.body.clientWidth and document.body.clientHeight
__________________
An answer needs a question just as much as a question needs an answer. Deep eh!
Jeepers is offline   Reply With Quote