Results 1 to 3 of 3

Thread: Detect and reset screen resolution?!?!

  1. #1
    Join Date
    Mar 2007
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Detect and reset screen resolution?!?!

    I am somewhat new to javascript so I don't know its full capabilities, but is it possible for a pop-up to come up if the users screen resolution is not the specified resolution? And then, allow the user to choose if they want to change it so if they choose yes, it will change to the specified resolution?

  2. #2
    Join Date
    Feb 2007
    Posts
    293
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    A script to detect browser resolution is at http://www.dynamicdrive.com/dynamicindex9/info1.htm

    You can't change someone's resolution. What you could do is modify the browser detection script so that it gives them a link that WILL work in different resolutions.

    if (screen.Height!=correctheight)
    {document.write('Or you can go <a href=differentres.htm">here</a>')};

    Or (better yet) if possible, design your page with divs that can work no matter what the resolution is.

  3. #3
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    Quote Originally Posted by Veronica View Post
    Or (better yet) if possible, design your page with divs that can work no matter what the resolution is.
    not if possible. Tables were created for tabular (eg statistics) type data, not as a layout schema.

    Yes you can detect the screen resolution by different scripts and redirect them accordingly, however why even make two different pages? Maintenance alone will be horrific if you have any type of substance on the page, not to mention the fact that even the most complex "table" layout is not that hard with css. It is a matter of creating your images appropriately and placing them in the right place. And as for different columns?? well there are HUNDREDs of resources online about how to create multiple columns both fixed and fluid. Visit A List Apart and it will explain.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •