Ver Mensaje Individual
  #4 (permalink)  
Antiguo 01/05/2006, 03:04
llcg
 
Fecha de Ingreso: junio-2005
Mensajes: 1
Antigüedad: 19 años
Puntos: 0
a mi me sirvio bastante este pruebalo es muy sencillo

<!-- funcion para no mostras el scroll y hacer lel frame se adapte al a pagina que contiene -->

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;
}
}

<!-- fin de funcion para cambiear los tamanhos del frame -->




luego invocas la funcion desde el onload del iframe de esta manera

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

espero que te sirva saludos