Ver Mensaje Individual
  #1 (permalink)  
Antiguo 14/03/2008, 18:33
Avatar de JoniJnm
JoniJnm
 
Fecha de Ingreso: mayo-2007
Ubicación: Madrid
Mensajes: 264
Antigüedad: 17 años, 9 meses
Puntos: 4
Pregunta Altura máxima para un iframe

Hola!

Utilizo un iframe con distintas src's, entonces quería saber cómo puedo hacer que la altura sea la entera, no sé si se hace con javascript, php o htm ^^

He mirado cómo lo hace joomla, pero ya en el html así que seguro que hay algún código php por medio. A ver si sirve:

Cita:
<script language="javascript" type="text/javascript">
function iFrameHeight() {
var h = 0;
if ( !document.all ) {
h = document.getElementById('blockrandom').contentDocu ment.height;
document.getElementById('blockrandom').style.heigh t = h + 60 + 'px';
} else if( document.all ) {
h = document.frames('blockrandom').document.body.scrol lHeight;
document.all.blockrandom.style.height = h + 20 + 'px';
}
}
</script>

<iframe onload="iFrameHeight()" id="blockrandom"
name=""
src="http://www.jonijnm.es/google/google-negro.php"
width="100%"
height="200"
scrolling="no"
align="top"
frameborder="0"
class="wrapper">
No Iframes</iframe>
Gracias anticipadas, y perdonen mi ignorancia