Re: + Windows Resolution

From: Date: Tue, 27 Jun 2000 05:51:56 +0000
Subject: Re: + Windows Resolution
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3283@lists.php.net to get a copy of this message
At 22:21 26.06.00 -0400, you wrote:
How cab I get the Resolution of the client's desktop, so that I could implement something with PHP in case of that Screen Size ? I know the browser and the HTTP SERVER negotiate this in every request...
Put the following JavaScript in a page to select the resolution, This one checks for 1024x768 <SCRIPT LANGUAGE="JavaScript"> <!-- function show() { if (screen.width==640) { location="wrong_resolution.html"; } else { if (screen.width==800) { location="wrong_resolution.html"; } else { location="right_resolution.html"; } } } //--> </script> Greetings Oliver Heinisch

« previous php.general (#3283) next »