Norman said:
I want to place some graphic images on the web that are optimally viewed at
a resolution of 1024 by 768 pixels. Is it possible, within Javascript,to
force a particular screen resolution?
Let me argue the case for why you should not even -think- of doing
that.
Say you have an image that is larger than the browser window. IE has a
setting where you can choose from one of two behaviours: (a) reduce the
image in size to fit in the window, or (b) display the image in full
size & add scrollbars accordingly.
Some folks prefer option (a). I personally prefer option (b). Can you
imagine how peeved I would be, if some webste (or program) changed my
setting from (b) to (a)? I would simply change it back, and never go to
that website again.
The same apples to other screen related settings such as resolution,
default text size, desktop wallpaper, and so on. These are -personal-
settings, and it is not appropriate for any program or website to
change them, without the user's consent.
In addition, the user might have other, technical reasons for wanting
to use a lower resolution. Perhaps he can't read text at higher
resolutions. Perhaps he constantly uses a program that requires the
lower resolution. Perhaps his favourite game crashes the PC, when it is
run at higher resolutions. What if you change the resolution, and his
favourite game (which happens to be running at that time), instantly
crashes his PC?
Believe me: you do not want to do what you've asked. If you -did-,
then, many people would never visit your site again.
HTH,
TC (MVP MSAccess)
http://tc2.atspace.com