Click to See Complete Forum and Search --> : need to resize - tips please?


missp
06-26-2003, 05:20 PM
I need to force the viewer's browser to maximize for those on 800 x 600 resolution but to resize for other resolutions. (Does that make sense?) I was playing with a script (below) that did screen res redirects, but of course it's not working ...

<script>
<!--
var width = screen.width;var res =(((!(640-width))*1)+((!(800-width))*2)+((!(1024-width))*3)+((!(1152-width))*4)+((!(1280-width))*5)+((!(1600-width))*6)); if(!(res)) res = 1;if (res=='2') {window.resizeTo''',''screen.height','screen.width''}if (res=='3') {window.resizeTo','800,600''}

//-->
</script>

Am I even close? Thanks ;)

Vladdy
06-26-2003, 05:51 PM
What you need to do is design your web site in such a way that it can be viewed by devices with any resolution and no resolution at all.
Browser window is set by a user to thier preference - leave it alone.

missp
06-26-2003, 06:50 PM
Of course I do realize that ... and as I've said elsewhere on the forum, I always try to design to meet the lowest common denominator (800 x 600 res, etc) ...

Problem this time is that I'm doing a personal site for my mom. She's on AOL, 800 x 600 res, 15" monitor. The AOL screen space allotment leaves even less avail space to work with ...
to accomodate her best viewing experience and eliminate scrolling of any kind, she needs to maximize her browser window. This makes for a very awkward layout for visitors at higher resolutions.

So right or wrong ... I'd like to make it work ... resize browser for resolutions over 800, and screen.width x screen.height for my mom ;)

TIA

Charles
06-26-2003, 07:01 PM
Originally posted by missp
Of course I do realize that ... and as I've said elsewhere on the forum, I always try to design to meet the lowest common denominator (800 x 600 res, etc) ... The "lowest common denominator" is no screen at all.

missp
06-26-2003, 07:10 PM
ok let me rephrase that then (sigh):
The lowest common denominator of the specific target audience I am creating for. Which in this particular case is a non-web-savvy mom on AOL.

Anyway ... once again ... I understand your argument. All I am asking for is help with a script ... or not. Thanks.

Charles
06-26-2003, 07:14 PM
Originally posted by missp
Which in this particular case is a non-web-savvy mom on AOL. Are you certain that no blind "non-web-savvy mom" uses AOL with her Braille browser?

missp
06-26-2003, 07:16 PM
MY non-web-savvy Mom ... MINE! This is a private site for her to show off photos to her friends. It needs to be non-scrolling and she wants the photos at a certain size. C'mon ... please? :confused: