Chinaunix

标题: 取得客户窗口的分辩率 [打印本页]

作者: webvista    时间: 2006-12-06 18:15
标题: 取得客户窗口的分辩率

               
               
                ?php
if(!$_GET["screenX"]) {
echo '
location = location.href+"?screenX="+screen.width+"&screenY="+screen.height;
';
exit;
}
$screenX = $_GET["screenX"];
$screenY = $_GET["screenY"];
?>


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17173/showart_211245.html




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2