Video Adapter / Monitor resolution detection

B

BLR

Anyone have an idea how to check the resolution of a
video adapter via ASP code or a Java script? We are
working on a new website and would like to, in-lieu-of
a "formal" survey, be able to see what resolution the
user has their video adapter/monitor set to (ie 800x600
or 1024x768) so we can make the pages look the best for
the majority of users.

Thanks,

BLR
 
J

Jens Peter Karlsen[FP MVP]

While you can check for this using JavaScript it makes much more sense to check the window size of the browser as the two rarely has anything to do with each other.


Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.


nntp://msnews.microsoft.com/microsoft.public.frontpage.programming/<[email protected]>

Anyone have an idea how to check the resolution of a
video adapter via ASP code or a Java script? We are
working on a new website and would like to, in-lieu-of
a "formal" survey, be able to see what resolution the
user has their video adapter/monitor set to (ie 800x600
or 1024x768) so we can make the pages look the best for
the majority of users.

Thanks,

BLR

[microsoft.public.frontpage.programming]
 
J

Jim Buyens

This information is relatively difficult to get, primarily
because of differences among browsers. In IE, for example,
you can get it in JavaScript from screen.height and
screen.width, but I don't believe all browsers support the
screen object and/or the height and width properties.

In most cases, you're probably better off determining the
browser's window size, but that too is subject to
variation among browsers. You can find some useful
techniques in the page at:

http://www.interlacken.com/fp11iso/ch19/windowsize.htm

Please don't even THINK of determining the physical screen
size or browser window size, and then changing it.
Visitor's just hate that. They have this peculiar notion
that they, and not you, control their desktop.

You might, however, want to try using a "liquid layout".
To to that, you specify all your horizontal dimensions in
percentages, and the layout auto-sizes to the browser
window.

Jim Buyens
Microsoft FrontPage MVP
http://www.interlacken.com
Author of:
*----------------------------------------------------
|\---------------------------------------------------
|| Microsoft Office FrontPage 2003 Inside Out
||---------------------------------------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/---------------------------------------------------
*----------------------------------------------------

-----Original Message-----
While you can check for this using JavaScript it makes
much more sense to check the window size of the browser as
the two rarely has anything to do with each other.
Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.
nntp://msnews.microsoft.com/microsoft.public.frontpage.prog
ramming/ said:
Anyone have an idea how to check the resolution of a
video adapter via ASP code or a Java script? We are
working on a new website and would like to, in-lieu-of
a "formal" survey, be able to see what resolution the
user has their video adapter/monitor set to (ie 800x600
or 1024x768) so we can make the pages look the best for
the majority of users.

Thanks,

BLR

[microsoft.public.frontpage.programming]
.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top