Posted on 2006-12-21 20:31
玄铁剑 阅读(358)
评论(0) 编辑 收藏 引用 所属分类:
ASP.NET相关
//////////////////////////////////////////////////////////////////////////////////////////////
<iframe id="iFrame1" name="iFrame1" width="100%" onload="this.height=iFrame1.document.body.scrollHeight" frameborder="0" src="index.htm"></iframe>
/////////////////////////////////////////////////////////////////////////////////////////////
<td id="iHeight">
<iframe name="MainDefault" style="width:100%;height:100%" src="Default.aspx" frameborder="no" scrolling="no">
</iframe>
</td>
/* User status maintain */
window.onload = function()
{
if (parent.document.all.iHeight==null)
{
if (top.location != self.location)
top.location=self.location;
}
else
{
parent.document.all.iHeight.height = this.document.body.scrollHeight;
}
}