RE: [PHP] RE: detecting user screen size.

From: Date: Fri, 23 Aug 2002 13:09:35 +0000
Subject: RE: [PHP] RE: detecting user screen size.
Groups: php.general 
Request: Send a blank email to php-general+get-113755@lists.php.net to get a copy of this message
Ya, I definatley have to agree with that. -Steve. -----Original Message----- From: Milan Reznicek [mailto:reznicekm@gytool.cz] Sent: Friday, August 23, 2002 8:56 AM To: Steve Bradwell; PHP General Subject: Re: [PHP] RE: detecting user screen size. 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 > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#113755) next »