"rf" <ma**********@the.time> wrote in message
news:hW*********************@news-server.bigpond.net.au...
"Martin Gustavsson" <no****@noserver.com> wrote in message
news:PV*******************@newsb.telia.net... Hi,
Does any one know how to load a sertain page in a sertain frame
depending on the viwers screenresolution?
What i mean is that if a user has 800*600 i want page 800.htm to be
loaded in frame "content". If the user has 1024*768 i want page 1024.htm to be
loaded in frame "content".
What if I have a browser window set at 800x900 on my 1600x1200 screen?
Build your page to be independend of screen size.
Cheers
Richard.
if (screen.width < 1024) {
document.location.replace("index800.html");
}
but don't rely too much on such stuff as screen resolution or even browser
width and height. People have all sorts of settings and preferences, and
they will like your site better if you leave it up to them.
Ivo