Code
1
2 function onloadfrm()
3 {
4 if (iframename.document.body.scrollHeight > document.all.iframename.offsetHeight)
5 {
6 document.all.iframename.height = iframename.document.body.scrollHeight + 4;
7 }
8 }
9 <iframe id="iframename" onload="onloadfrm();" name="iframename" src="" height="100%" frameborder="0" width="100%"></iframe>
posted @
2009-05-22 14:08
simplay
阅读(
264)
评论()
编辑
收藏
举报