Re: RE: detecting user screen size.

From: Date: Fri, 23 Aug 2002 12:56:00 +0000
Subject: Re: RE: detecting user screen size.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113753@lists.php.net to get a copy of this message
Hi, but there's one problem with the JavaScript you wrote. Because you only get the user's screen size. Not the size of user's window. I found there two ways how to do this: The first is to design the for only one resolution - bestly 800x600 because this one is the most used or to use CSS style's property width with percent values. Hi Milan Milan Reznicek Software Developer reznicekm@gytool.cz ----- Original Message ----- From: "Steve Bradwell" <SteveB@compxnet.com> To: <php-general@lists.php.net> Sent: Friday, August 23, 2002 2:55 PM Subject: [PHP] RE: detecting user screen size. > Hi All, > > I remember seeing a post recently of how to detect a users screen size to > show an appropriate page. While I agree that It is not the best answer to > take the users ability to make the descision themselves away, I came across > how to do it with javascript. > > <script language="javascript" type="text/javascript"> > var w = screen.width; > var h = screen.height; > var cD = screen.colorDepth; > var pD = screen.pixelDepth; > </script> > Just in case anyone is interested. > Steve > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

« previous php.general (#113753) next »