网站代码自动调整Iframe高度
广州网站建设
2008-4-22 20:32:49
代码如下,制作网站的自己去分析吧
<script type="text/javascript">
function SetCwinHeight(){
var bobo=document.getElementById("bobo"); //iframe id
if (document.getElementById){
if (bobo && !window.opera){
if (bobo.contentDocument && bobo.contentDocument.body.offsetHeight){
bobo.height = bobo.contentDocument.body.offsetHeight;
}else if(bobo.Document && bobo.Document.body.scrollHeight){
bobo.height = bobo.Document.body.scrollHeight;
}
}
}
}
</script>
by - 广州网站建设
责任编辑:
参与评论
广告位招租,广告代号:GGAD
- 网站建设标题是最重要的
- 标题永远是最重要的,现在我们说一下怎样定位标题
- 网站制作函数的简单调用
- 函数的简单调用
- 网站建设PHP中FOR高级运用
- PHP中FOR高级运用
- 网站建设要有专业水准
- 网站建设要有专业水准
- 网站制作前应该有个合理的策划过..
- 网站制作前应该有个合理的策划过程
- 网站建设目标细化整理内容框架
- 网站建设目标细化整理内容框架
