Page in frame depending on screenresolution?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Martin Gustavsson

    Page in frame depending on screenresolution?

    Hi,

    Does any one know how to load a sertain page in a sertain frame depending on
    the viwers screenresolutio n?

    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


  • rf

    #2
    Re: Page in frame depending on screenresolutio n?


    "Martin Gustavsson" <nomail@noserve r.com> wrote in message
    news:PVGeb.2698 7$mU6.66503@new sb.telia.net...[color=blue]
    > Hi,
    >
    > Does any one know how to load a sertain page in a sertain frame depending[/color]
    on[color=blue]
    > the viwers screenresolutio n?
    >
    > 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".[/color]

    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.


    Comment

    • Ivo

      #3
      Re: Page in frame depending on screenresolutio n?

      "rf" <making.it.up@t he.time> wrote in message
      news:hWKeb.1328 58$bo1.125259@n ews-server.bigpond. net.au...[color=blue]
      >
      > "Martin Gustavsson" <nomail@noserve r.com> wrote in message
      > news:PVGeb.2698 7$mU6.66503@new sb.telia.net...[color=green]
      > > Hi,
      > >
      > > Does any one know how to load a sertain page in a sertain frame[/color][/color]
      depending[color=blue]
      > on[color=green]
      > > the viwers screenresolutio n?
      > >
      > > What i mean is that if a user has 800*600 i want page 800.htm to be[/color][/color]
      loaded[color=blue][color=green]
      > > in frame "content". If the user has 1024*768 i want page 1024.htm to be
      > > loaded in frame "content".[/color]
      >
      > 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.
      >[/color]

      if (screen.width < 1024) {
      document.locati on.replace("ind ex800.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


      Comment

      Working...