您的位置:首页 > 其它

弹出窗口 resize 时指定客户区大小

2007-01-26 22:55 260 查看
当页面载入后,resize 窗口大小时,不受菜单,工具栏影响,只关心“客户区”大小。避免了 resize 的时候,还要去估计页面之外的浏览器面积。

<script language=JavaScript>
function resizeClient()
{
width = 220;
height= 180;

window.resizeBy( width - document.body.clientWidth,
height - document.body.clientHeight );
}

window.onload=resizeClient;
</script>

function setFrameWindowHeight()
{
var theTable = document.getElementById("theTable");

parent.setContentHeight( Math.max(theTable.scrollHeight + 10, 20) );
}

setTimeout("setFrameWindowHeight()", 300);
setTimeout("setFrameWindowHeight()", 2500);
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: