29/04/2008, 17:59
|
| | Fecha de Ingreso: abril-2008
Mensajes: 15
Antigüedad: 16 años, 9 meses Puntos: 1 | |
Re: Barra de scroll en iframes y más bookmaster he visto el ejemplo que has puesto y he empezado a depilarme la frente con el canto de la mesa. He revisado el código de la muestra y aun no se que hago mal... posteo el código a ver si encuentras algo que yo no veo, porque al darle al vinculo para abrir en el iframe, lo abre, pero no varía el tamaño.
<head>
<title>mi pagina</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script>
function resizeIframe(idIframe){
var miIframe=document.getElementById(idIframe);
var alturaPagina=miIframe.contentWindow.document.body. scrollHeight+20;
miIframe.style.height=alturaPagina;
}
</script>
</head>
<body>
<table width="804" border="0" cellpadding="0" cellspacing="0" bgcolor="#000000">
<tr>
<td height="133" colspan="5"> </td>
<td><img src="images/spacer.gif" width="1" height="120" border="0" alt="" /></td>
</tr>
<tr>
<td width="100"><div class="Estilo3 Estilo7" id="Fecha">
<div align="center" class="Estilo8">
<div align="right">
</div>
</div>
</div>
</td>
<td width="78"> </td>
<td width="7"> </td>
<td colspan="2"> </td>
<td><img src="images/spacer.gif" width="1" height="19" border="0" alt="" /></td>
</tr>
<tr>
<td height="16" colspan="5" bgcolor="#000000"> </td>
<td><img src="images/spacer.gif" width="1" height="14" border="0" alt="" /></td>
</tr>
<tr>
<td colspan="3" valign="top" bgcolor="#000000"><p align="center" class="Estilo19">Los archivos</p> <p align="center" class="Estilo8"><a href="http://www.mipagina.com/archivos/abril.html" target="NombreIframe1">Abril</a></p>
<p align="center" class="Estilo21"> </p>
<p align="center"> </p>
</td>
<td width="12" valign="top" bgcolor="#000000"><p align="center" class="Estilo8 Estilo9"> </p>
<p align="center" class="Estilo19 Estilo20"> </p>
<p align="center" class="Estilo19"> </p> </td>
<td width="490" valign="top" bordercolor="#000000" bgcolor="#000000"><p align="center" class="Estilo8 Estilo9"> <iframe name="NombreIframe1" scrolling="no" id="NombreIframe1" style="width:350px; height:300px; float:left;" onLoad="resizeIframe(this.id);"></iframe>
</p>
<td> </td>
</tr>
</table>
</body>
</html>
Muchas gracias. |