<form action=a.php method=post name=f>
分辨率为 :<input name=swidth> x <input name=sheight>
<input type=submit value=确定>
</form>
<script language=javascript>
document.f.swidth.value=screen.width;
document.f.sheight.value=screen.height;
</script>
分辨率为 :<input name=swidth> x <input name=sheight>
<input type=submit value=确定>
</form>
<script language=javascript>
document.f.swidth.value=screen.width;
document.f.sheight.value=screen.height;
</script>
gooddot(飞影) 的方法我知道,
还可以用location.href,
也有人说用javascript将screen.width写入cookie,再用PHP读cookie(我没试过,而且用户可能禁用cookie)还有其他方法吗?
我想要的方式是:下面的程序段从上到下的运行,而不刷新页面
<script language=javascript>
alert ("分辨率为 " + screen.width + "× " + screen.height );
</script>
<?
php处理部分
?>
请看 http://expert.csdn.net/Expert/TopicView1.asp?id=2890328
有解决方法