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:
Gracias anticipadas, y perdonen mi ignorancia <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>
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>