Re: Re: Resalution Dection
| From: | Christian Blichmann | Date: | Fri, 25 Jan 2002 15:20:50 +0000 |
| Subject: | Re: Re: Resalution Dection | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-82105@lists.php.net to get a copy of this message | ||
"Jeff Sheltren" <sheltren@home.com> wrote in message
news:006901c1a552$ad42ebf0$0500a8c0@ellaptop...
> Yes, you can use javascript to get the user's resolution:
>
> screen.width
> screen.colorDepth
You can also use
window.innerWidth
window.innerHeight
(at least in Opera 4.x+ and NN4.x) or use
document.body.clientWidth
document.body.clientHeight
(in IE) or through the DOM (Document Object Model,
see http://www.w3c.org):
document.body.offsetWidth
document.body.offsetHeight
This might be helpful for you as well...
Christian Blichmann
_____________________________________________
don't hesitate - email me with your thoughts:
e-mail: feedback.nospam@blichmann.de
- please remove the ".nospam" from address.
_____________________________________________
do you want to know more?
web: http://www.blichmann.de