什么牌子的护肤品好:js问题一个document.write的问题,来帮我改改吧!

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/02 02:40:11
url(变量)的信息已经在函数处给出,现在想要让IFRAME自动适应url对应网页高度,但是这个代码好象有错误,webworks请帮我看看吧!!
<script language="javascript">
document.write ("<IFRAME id=url src="+url+" frameBorder=0 scrolling=no allowTransparency width='748' height=100% ></IFRAME>");
</script>
上面有点写错了~~~~
document.write ("<IFRAME id=url src="+url+" frameBorder=0 scrolling=no allowTransparency width='748' height=100% onload='this.height=guestbook.document.body.scrollHeight + 50'></IFRAME>");