I put the following code inside head tag:
Code: Select all
<script language="JavaScript">
<!--
function resize_iframe()
{
document.getElementById("iframeprincipal").height=document.body.offsetHeight-document.getElementById("iframeprincipal").offsetTop-43;//resize the iframe according to the size of the window
}
window.onresize=resize_iframe; //this will resize the iframe every time you change the size of the window.
//Instead of using this you can use: <BODY onresize="resize_iframe()">
//-->
</script>
Code: Select all
<SCRIPT>
function openIFrame(iFrameId,winURL)
{
ifId=gmobj(iFrameId)
ifId.src=winURL
}
</SCRIPT>
Code: Select all
<iframe id='iframeprincipal' width=100% scrolling="auto" frameborder="0" src="coettc.cgi?tolink=_scfmedio">
<div align="center" class="white12">
Su navegador no soporta iFrames, por favor actualice su navegador para ver correctamente estas páginas.
</div>
</iframe>
I try to put this:
Code: Select all
onload='resize_iframe()'
on body tag and don't works.
I try to put this:
Code: Select all
onload='resize_iframe()'
on iframe tag and don't works too.
I tried adding:
Code: Select all
<SCRIPT LANGUAGE="JavaScript">
<!--
resize_iframe();
//-->
</SCRIPT>
Please help meee, my web page is http://www.coettc.net, I'm going crazy!!!!!!!!!!!
Thanks in advance.
Susanna