<html>
<head>
<title>获得客户端分辩率,然后确定表格宽度</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<table width="800" align="center" border="1" style="display:none" id=table1>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
</table>
<SCRIPT LANGUAGE="JavaScript">
<!--
if ((screen.width == 800) && (screen.height == 600))
table1.width=800;
else if ((screen.width == 1024) && (screen.height == 768))
table1.width=1000;
table1.style.display="";
alert(table1.width)
//-->
</SCRIPT>
</body>
</html>