復制代碼 代碼如下:
<body onload="setHeight()">
<script type="text/javascript">
function setHeight() {
var PageHeight=$("oPage").scrollHeight
var MaxHeight=507
if(PageHeight>MaxHeight)
{
$("oPageMain").style.height=$("oPage").scrollHeight + 40 +"px"
$("oRight").style.height=$("oPage").scrollHeight + 120 +"px"
$("oMain").style.height=$("oPage").scrollHeight + 211 +"px"
}
}
</script>