<script language="jscript">
<!--
alert(window.screen.Width+"*"+window.screen.Height);
//-->
</script>

解决方案 »

  1.   

    那asp后台怎么获得这个大小呢
      

  2.   

    <script LANGUAGE="JavaScript">
    <!-- Begin
    function redirectPage() {
    var url640x480 = "640.html";
    var url800x600 = "800.html";
    var url1024x768 = "1024.html";
    if ((screen.width == 640) && (screen.height == 480)) 
      alert("现在显示器的分辨率是640*480");
    else if ((screen.width == 800) && (screen.height == 600))
      alert("现在显示器的分辨率是800*600");
    else ((screen.width == 1024) && (screen.height == 768))
      alert("现在显示器的分辨率是1024*768");
    }
    // End -->
    </script>
      

  3.   

    赋给一个公用变量不就可以了
    或者用session
      

  4.   

    在body的onload事件中用window.screen.Width和window.screen.Height取得分辨率然后写入到form中两个隐藏的输入框中,或者说你觉得onload中取的不保险不是当前的,可以在form的onsubmit事件中取