Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/05/2010, 18:27
hugothyran
 
Fecha de Ingreso: mayo-2010
Mensajes: 1
Antigüedad: 14 años
Puntos: 0
Iframe dinamico que funcione en Firefox

Hola no logro hacer funcionar un iframe dinamico en firefox en IE explorer funciona correctamente, aqui esta el codigo

<script>
function reSize()
{
try{
var oBody = ifrm.document.body;
var oFrame = document.all("ifrm");

oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
}
//An error is raised if the IFrame domain != its container's domain
catch(e)
{
window.status = 'Error: ' + e.number + '; ' + e.description;
}
}
</script>

<iframe onload=reSize() id=ifrm name="contenido" height="100%" width="100%" frameborder="0" scrolling="no" src="noticias.php">