网页调用其他网页的代码是什么?

如题所述

<html>
<head>
<title>这里写你网站标题</title>
<script>
function SetWinHeight(obj)
{
var win=obj;
if (document.getElementById)
{
if (win && !window.opera)
{
if (win.contentDocument && win.contentDocument.body.offsetHeight)

win.height = win.contentDocument.body.offsetHeight;

else if(win.Document && win.Document.body.scrollHeight)

win.height = win.Document.body.scrollHeight;
}
}
}
</script>
<body>
<iframe width="778" src="这里输入你要调用的地址" align="center" height="200" id="win" name="win" onload="Javascript:SetWinHeight(this)" frameborder="0" scrolling="no"></iframe>
</body>
</html>
温馨提示:答案为网友推荐,仅供参考
相似回答