PHP+JS+COOKIE取得客户端显示器分辨率
August 16th, 2011
1 comments


1 2 3 4 5 6 7 8 9 10 11 12 13 | <script type="text/javascript">
<!--
var width = window.screen.width;
var height = window.screen.height;
document.cookie="width="+width;
document.cookie="height="+height;
//-->
</script>
<?
$width = $_COOKIE['width'];
$height = $_COOKIE['height'];
echo "您的显示器宽为:".intval($width)."高为:".intval($height);
?> |


