泪巴巴求教:如何用JS获得框架中页面的高度?? document.all("show").document.body.scrollHeight 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 <html><head></head><body><IFRAME name=show frameBorder=1 width=100% scrolling=no src="http://www.csdn.net/"></IFRAME><script language="JavaScript" type="text/JavaScript">function window.onload(){ document.all.show.height=document.all.show.document.body.scrollHeight+document.all.show.document.body.clientHeight}</script> </body></html> 在test.asp里加下面的代码:<script language="JavaScript" type="text/JavaScript">function window.onload(){ top.location!=self.location?window.parent.document.all.show.height=document.body.scrollHeight:null;}</script> uGain(uGain.org) ,太谢谢你了。真的很谢谢啊。给你加上30分。再问一下,如果是外部框架内的页面来自外部,又该如何做???????? 外部的页面无法得到它的scrollHeight,所以实现起来比较困难。 我原先的想法是,在载入外部网页的时候,能用js分析出它的源码吗?看一下这个网页,是个足球比分,完全由表格显示的。如查我能在它载入时分析出它的表格有多少行,然后乘以每行的高度,我想应该可以大概得出网页的高度了吧http://www.zqzz.com/livescore.htm 大家有没有遇到同样的问题-ExtJs4.0 RowEditing errorSummary 正则表达式高手求进 window.open保存到变量的问题 asp实现权限分类 用window.open刷新页面的问题 js高手,帮忙实现..谢谢,万分感谢 在一个框架中怎样用右页面刷新左页面。。。。。。 js里根本没有整数,统统都是双精度数?命题对否。 JavaScript 如何遍历得到控件的所有属性? 困惑了好长时间的问题!!!! 分不够说话. 一个小问题,请大家帮忙。 求教:showModalDialog打开时,带一参数,在所打开的页中如何得到所传的参数 高分请教各位前辈
<IFRAME name=show frameBorder=1 width=100% scrolling=no src="http://www.csdn.net/"></IFRAME>
<script language="JavaScript" type="text/JavaScript">
function window.onload(){
document.all.show.height=document.all.show.document.body.scrollHeight+document.all.show.document.body.clientHeight
}
</script>
</body></html>
<script language="JavaScript" type="text/JavaScript">
function window.onload(){
top.location!=self.location?window.parent.document.all.show.height=document.body.scrollHeight:null;
}
</script>