<div class="codetitle"> <span><a style="CURSOR: pointer" data="22578" class="copybut" id="copybut22578" onclick="doCopy('code22578')"><u>复制代码</u></a></span>代码如下:</div> <div class="codebody" id="code22578"> <br><body onload="setHeight()"> <br><script type="text/javascript"> <br>function setHeight() { <br>var PageHeight=$("oPage").scrollHeight <br>var MaxHeight=507 <br><br>if(PageHeight>MaxHeight) <br>{ <br>$( "oPageMain").style.height=$("oPage").scrollHeight 40 "px" <br>$("oRight").style.height=$("oPage").scrollHeight 120 "px" <br> $("oMain").style.height=$("oPage").scrollHeight 211 "px" <br>} <br>} <br></script> <br> </div> <br><br>