> How do you determine a user's screen size (resolution)? Isn't there a
> variable/function for this?
I doubt you could do this in PHP, since your browser doesn't normally
include screen size information in the headers it sends across to web
servers.
However, JavaScript can do this -- there's a screen object, with properties
called screen.width and screen.height that specify (surprisingly enough) the
width and height of the user's screen.
You could create a form with some hidden inputs, and have a JavaScript body
onLoad() event that would set the values of these hidden inputs to your
user's screen size. When PHP receives this form. it could process the
information from there.
Hope this helps...
--Todd
> -----Original Message-----
> From: Jason Bryner :: Focus Design Group, Inc.
> [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, February 25, 2001 10:52 PM
> To: PHP
> Subject: [PHP] Screen Size?
>
>
> How do you determine a user's screen size (resolution)? Isn't there a
> variable/function for this?
>
>
> --
> Focus Design Group, Inc.
> http://www.focusdesigngroup.com
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
>