RE: [PHP] Screen Size?

From: Date: Mon, 26 Feb 2001 19:02:40 +0000
Subject: RE: [PHP] Screen Size?
Groups: php.general 
Request: Send a blank email to php-general+get-41720@lists.php.net to get a copy of this message
> 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:jason@focusdesigngroup.com] > 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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: > php-list-admin@lists.php.net >

« previous php.general (#41720) next »