By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,527 Members | 1,206 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,527 IT Pros & Developers. It's quick & easy.

Page in frame depending on screenresolution?

P: n/a
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".

Thank's in advance
Jul 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
rf

"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.
Jul 20 '05 #2

P: n/a
Ivo
"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
Jul 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.