Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
Benny Lee #1
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
-
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... -
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.... -
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... -
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... -
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... -
Jeff North #2
Re: Detect monitor resolution setting
On Sat, 19 Jul 2003 22:38:48 -0400, in macromedia.dreamweaver Benny
Lee <bennylee@sympatico.ca> wrote:
use:>| 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
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
-
Ruy Asan #3
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
-
Dan Vendel *GOF* #4
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
-
Gary White #5
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
-
Benny Lee #6
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



Reply With Quote

