/    Sign up×
Community /Pin to ProfileBookmark

need to resize – tips please?

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 ?

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@VladdyJun 26.2003 — 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.
Copy linkTweet thisAlerts:
@misspauthorJun 26.2003 — 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
Copy linkTweet thisAlerts:
@CharlesJun 27.2003 — [i]Originally posted by missp [/i]

[B]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) ... [/B][/QUOTE]
[font=georgia]The "lowest common denominator" is no screen at all.[/font]
Copy linkTweet thisAlerts:
@misspauthorJun 27.2003 — 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.
Copy linkTweet thisAlerts:
@CharlesJun 27.2003 — [i]Originally posted by missp [/i]

[B]Which in this particular case is a non-web-savvy mom on AOL.[/B][/QUOTE]
[font=georgia]Are you certain that no blind "non-web-savvy mom" uses AOL with her Braille browser?[/font]
Copy linkTweet thisAlerts:
@misspauthorJun 27.2003 — 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? ?
×

Success!

Help @missp spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...