<script type="text/javascript">
if (window.addEventListener)
window.addEventListener("load", dyniframesize, false)
else if (window.attachEvent)
window.attachEvent("onload", dyniframesize)
else
window.onload=dyniframesize
//以下是放入iframe页面的方法,如果要放入框架页面,去掉所有的top
//另外从框架页面修改这个iframe的src等等,用top.document....
function dyniframeResize()
{
var iframeids=["MainIframe"]
var iframehide="yes";
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++)
{
if (top.document.getElementById)
{
//自动调整iframe高度
dyniframe[dyniframe.length] = top.document.getElementById(iframeids[i]);
if (dyniframe[i] && !top.window.opera)
{
dyniframe[i].style.display="block"
if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //如果用户的浏览器是NetScape
dyniframe[i].style.height = dyniframe[i].contentDocument.body.offsetHeight;
else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //如果用户的浏览器是IE
dyniframe[i].style.height = dyniframe[i].Document.body.scrollHeight;
}
}
}
}
</script>
//allowTransparency="true"透明
<iframe id="MainIframe" allowTransparency="true" style=" width:100%; height:100%; border:0px; border-style:none; background-color:#f6f9fe; border-right:soild 1px #809eba" frameborder="0" b scrolling="no" marginheight="0px" marginwidth="0px" src="CustomerManagement/LeftCustomerManagement.htm">
</iframe>
if (window.addEventListener)
window.addEventListener("load", dyniframesize, false)
else if (window.attachEvent)
window.attachEvent("onload", dyniframesize)
else
window.onload=dyniframesize
//以下是放入iframe页面的方法,如果要放入框架页面,去掉所有的top
//另外从框架页面修改这个iframe的src等等,用top.document....
function dyniframeResize()
{
var iframeids=["MainIframe"]
var iframehide="yes";
var dyniframe=new Array()
for (i=0; i<iframeids.length; i++)
{
if (top.document.getElementById)
{
//自动调整iframe高度
dyniframe[dyniframe.length] = top.document.getElementById(iframeids[i]);
if (dyniframe[i] && !top.window.opera)
{
dyniframe[i].style.display="block"
if (dyniframe[i].contentDocument && dyniframe[i].contentDocument.body.offsetHeight) //如果用户的浏览器是NetScape
dyniframe[i].style.height = dyniframe[i].contentDocument.body.offsetHeight;
else if (dyniframe[i].Document && dyniframe[i].Document.body.scrollHeight) //如果用户的浏览器是IE
dyniframe[i].style.height = dyniframe[i].Document.body.scrollHeight;
}
}
}
}
</script>
//allowTransparency="true"透明
<iframe id="MainIframe" allowTransparency="true" style=" width:100%; height:100%; border:0px; border-style:none; background-color:#f6f9fe; border-right:soild 1px #809eba" frameborder="0" b scrolling="no" marginheight="0px" marginwidth="0px" src="CustomerManagement/LeftCustomerManagement.htm">
</iframe>
浙公网安备 33010602011771号