|
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!
|