Re: Help me about detect client screen resolution!!!

From: Date: Tue, 02 Jan 2007 14:51:04 +0000
Subject: Re: Help me about detect client screen resolution!!!
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-246350@lists.php.net to get a copy of this message
On 1/2/07, Stut <stuttle@gmail.com> wrote:
Le Phuoc Canh wrote: Can we use php to detect client screen resolution? Please help me ? No "we" can't. "You" need Javascript or another "client"-side technology for that. -Stut -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
<script type="text/javascript"> var thisSize; function showStats() { thisSize = 'Screen resolution is ' + screen.width + ' x ' + screen.height;
    if (thisSize) {
         document.getElementById("output").innerHTML = thisSize;
    }
} </script> <html> <a href="javascript:showStats();">Screen Resolution</a> <p id="output"></p> </html> I think this should work. David

« previous php.general (#246350) next »