不是有screen这个对象吗,它的属性screen.width和screen.height不是得到你想得到的数据吗。

解决方案 »

  1.   

    height Property--------------------------------------------------------------------------------Retrieves the vertical resolution of the screen.SyntaxHTML N/A 
    Scripting [ iHeight = ] screen.height Possible ValuesiHeight Integer that receives the screen height, in pixels. The property is read-only. The property has no default value.Expressions can be used in place of the preceding value(s), as of Microsoft?Internet Explorer 5. For more information, see Dynamic Properties.
    width Property--------------------------------------------------------------------------------Retrieves the horizontal resolution of the screen. SyntaxHTML N/A 
    Scripting [ iWidth = ] screen.width Possible ValuesiWidth Integer that receives the width, in pixels. The property is read-only. The property has no default value.Expressions can be used in place of the preceding value(s), as of Microsoft?Internet Explorer 5. For more information, see Dynamic Properties.
      

  2.   

    建议你看看这个
    http://aotianlong.vicp.net/visit.php?admin=yes