<div class="codetitle"> <span><a style="CURSOR: pointer" data="83504" class="copybut" id="copybut83504" onclick="doCopy('code83504')"><u>复制代码</u></a></span> 代码如下:</div> <div class="codebody" id="code83504"> <br><script type="text/javascript"> <br> function SetCwinHeight(){ <br> var bobo=document.getElementById("bobo"); //iframe id <br> if (document.getElementById){ <br> if (bobo && !window.opera){ <br> if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){ <br> bobo.height = bobo.contentDocument.body.offsetHeight; <br> }else if(bobo.Document && bobo.Document.body.scrollHeight){ <br> bobo.height = bobo.Document.body.scrollHeight; <br> } <br> } <br> } <br> } <br></script> <br><iframe width="100%" id="bobo" onload="Javascript:SetCwinHeight()" height="1" frameborder="0" src="/default.asp?cateID=1"></iframe> <br><br> </div> <br><div class="htmlarea"> <textarea id="runcode91790"> <iframe width="100%" id="bobo" onload="Javascript:SetCwinHeight()" height="1" frameborder="0" src="/default.asp?cateID=1"> </iframe></textarea> <br><input onclick="runEx('runcode91790')" type="button" value="运行代码"><input onclick="doCopy('runcode91790')" type="button" value="复制代码"> <input onclick="doSave(runcode91790)" type="button" value="保存代码"> <a href="/article/23421.htm" title="查看具体详情" target="_blank">[Ctrl+A 全选 注:</a>如需引入外部Js需刷新才能执行</div>]<script type="text/javascript"> function SetCwinHeight(){ var bobo=document.getElementById("bobo"); //iframe id if (document.getElementById){ if (bobo && !window.opera){ if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){ bobo.height = bobo.contentDocument.body.offsetHeight; }else if(bobo.Document && bobo.Document.body.scrollHeight){ bobo.height = bobo.Document.body.scrollHeight; } } } } </script>