<iframe src="health.jsp" frameborder="0" width="1000" scrolling="no" height="100%" id="myframe"></iframe>
<script type="text/javascript">
function reinitIframe()
{
var iframe = document.getElementById("myframe");
try{
var bHeight = iframe.contentWindow.document.body.scrollHeight;
var dHeight = iframe.contentWindow.document.documentElement.scrollHeight;
var height = Math.max(bHeight, dHeight);
iframe.height = height;
}catch (ex){}
}
window.setInterval("reinitIframe()", 200);
</script>
<iframe name="nfrm" src="about:blank"></iframe>
<a href="http://www.baidu.com" target="nfrm">在框架中显示百度</a>
<iframe name="nfrm" id="nfrm" src="about:blank"></iframe>
<a onmouseover="javascript:document.getElementById('nfrm').src='http://www.baidu.com'" target="nfrm">鼠标移过时显示百度</a>
暂无评论,还不快来坐沙发...