Detect monitor resolution setting

Ask a Question related to Macromedia Dreamweaver, Design and Development.

  1. #1

    Default Detect monitor resolution setting

    Hi, is there a behavior or script that can detect user's monitor
    resolution setting and re-direct to a new page?
    Thank you
    Benny

    Benny Lee Guest

  2. Similar Questions and Discussions

    1. Changing monitor display resolution on PC
      Hi, here's one good, free Xtra that just that.. and it works on Director MX 2004 as well... ResolutionX is a Macromedia? Xtra? built to change...
    2. Detect resolution.
      I need to be able to direct the user to one of two versions of the same website, each built for different monitor resolutions, 1024x768 & 1280x1024....
    3. controlling monitor resolution
      Am I correct in my interpretation of tech notes? That you can change the display size of director through lingo to fill the users monitor, but doing...
    4. Monitor Resolution
      Hi, thank you so much. I now have another problem. I built the package working on 1024x768 monitor resolution. I tried the Demension of browser...
    5. Pop up menu moves with monitor resolution
      Hi, How do you make a pop up menu appear at the same location even when you change the monitor resolution? I have made the pop up menu appear...
  3. #2

    Default Re: Detect monitor resolution setting

    On Sat, 19 Jul 2003 22:38:48 -0400, in macromedia.dreamweaver Benny
    Lee <bennylee@sympatico.ca> wrote:
    >| Hi, is there a behavior or script that can detect user's monitor
    >| resolution setting and re-direct to a new page?
    >| Thank you
    >| Benny
    use:
    window.screen.width;
    window.screen.height;

    although you would only need the width in most cases.

    and the following for redirection
    location.href = "newpage.htm"

    var w = window.screen.width;
    var pg = "default.htm";
    switch( w )
    {
    case 600: pg = "page600.htm"; break;
    case 800: pg = "page800.htm"; break;
    }
    location.href = pg;
    ---------------------------------------------------------------
    [email]jnorth@yourpantsbigpond.net.au[/email] : Remove your pants to reply
    ---------------------------------------------------------------
    Jeff North Guest

  4. #3

    Default Re: Detect monitor resolution setting

    Yep

    <SCRIPT language="JavaScript">
    <!--
    if ((screen.width>=1024) && (screen.height>=768))
    {
    window.location="highres.html";
    }
    else
    {
    window.location="lowres.html";
    }
    //-->
    </SCRIPT>

    Its pretty straight forward what to modify for your own purposes.

    I should add that this isn't particularly good web design practice. Your
    page should inherently deal with multiple resolution. I'm a big fan of
    800x600 fixed width centered - looks good on 90%+ of monitors out there.
    Unless you happen to be designing a high-profile site, you're better off
    forgetting about the 640x480ers out there, they are very few.

    Its a heap of trouble to design separate sites for multiple resolutions :p

    "Benny Lee" <bennylee@sympatico.ca> wrote in message
    news:3F1A00B8.90006@sympatico.ca...
    > Hi, is there a behavior or script that can detect user's monitor
    > resolution setting and re-direct to a new page?
    > Thank you
    > Benny
    >

    Ruy Asan Guest

  5. #4

    Default Re: Detect monitor resolution setting

    Benny Lee wrote:
    > Hi, is there a behavior or script that can detect user's monitor
    > resolution setting and re-direct to a new page?
    > Thank you
    > Benny
    >

    Benny,

    As Ruy says: Don't do this.
    I might add that the *screen* resolution hasn't *anything* do to with
    the dimensions of the browser viewport. Like me, many users on high
    resolutions are using this because we need to have several apps/windows
    open and visible. Therefore, my browser window rarely exceeds 800px
    width despite my 1280 x 1024 screen resolution. I *want* it that way,
    and I *hate* it when webdesigners think they know better. Let the user
    decide.

    --
    Dan Vendel - *GOF*
    [url]http://www.vendel.info[/url]
    Contact me directly by clicking here:
    [url]http://contact.vendel.info[/url]
    Formmail tutorial:
    [url]http://www.vendel.info/tut/formmail.html[/url]
    Nested table demonstration:
    [url]http://www.vendel.info/tabletut/[/url]

    Dan Vendel *GOF* Guest

  6. #5

    Default Re: Detect monitor resolution setting

    "Benny Lee" <bennylee@sympatico.ca> wrote in message
    news:3F1A00B8.90006@sympatico.ca...
    > Hi, is there a behavior or script that can detect user's monitor
    > resolution setting and re-direct to a new page?

    See [url]http://thepattysite.com/window_sizes1.cfm[/url]

    Gary


    Gary White Guest

  7. #6

    Default Re: Detect monitor resolution setting

    Thank you for all of your helps.
    The reason I have to do this is the site was design for 800x600 and the
    client don't like the scroll bar next to the frame, but some of her
    clients complain about they don't have the option to scroll with their
    640x480 monitor setting. That's why I want to detect their screen
    resolution and redirect to a page that can scroll.
    Thank you so much.
    Benny

    Benny Lee wrote:
    > Hi, is there a behavior or script that can detect user's monitor
    > resolution setting and re-direct to a new page?
    > Thank you
    > Benny
    >
    Benny Lee Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139