Page in frame depending on screenresolution?

  • Thread starter Martin Gustavsson
  • Start date
M

Martin Gustavsson

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
 
R

rf

Martin Gustavsson said:
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.
 
I

Ivo

rf said:
depending

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top