Get Screen Resolution

D

Daniel Kaseman

Can you help me figure out how to write some type of script that will load
different graphic based on the screen resolution? For example:

Select case ScreenRes
Case 800 X 600
Background Image = MyBackground800600
Case 1024 X 768
Background Image = MyBackground1024X768
End Select

I realize that this is VB syntax, and not VBScript. So please show me how
to do this in vbscript

Thanks
 
M

Murray

But screen resolution is not what you want. It's browser viewport size.
Not everybody browses with their browser maximized - and there is a
significant number who never maximize (Mac users).
 
S

Stefan B Rusynko

And server side scripting can't determine server side browser parameters
- search for JavaScript client side browser screen scripts




| But screen resolution is not what you want. It's browser viewport size.
| Not everybody browses with their browser maximized - and there is a
| significant number who never maximize (Mac users).
|
| --
| Murray
| ============
|
| | > Can you help me figure out how to write some type of script that will load
| > different graphic based on the screen resolution? For example:
| >
| > Select case ScreenRes
| > Case 800 X 600
| > Background Image = MyBackground800600
| > Case 1024 X 768
| > Background Image = MyBackground1024X768
| > End Select
| >
| > I realize that this is VB syntax, and not VBScript. So please show me how
| > to do this in vbscript
| >
| > Thanks
| >
|
|
 

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