![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
25/07/2011, 10:13
|
![Avatar de pitillo44](http://static.forosdelweb.com/customavatars/avatar388538_1.gif) | | | Fecha de Ingreso: enero-2011 Ubicación: Cali
Mensajes: 11
Antigüedad: 14 años Puntos: 0 | |
Cambiar tamaño de iframe Hola tengo este JavaScript para cambiar el tamaño de un iframe,
<script language="JavaScript" type="text/javascript">
function altu(v)
{
var alt=document.getElementById('fr').style.height;
alt=alt.substring(0,(alt.length-2))*1;
if(alt*1==0) {alt=150;}
document.getElementById('fr').style.height=v+alt;
}
</script>
y lo llamo en el evento onclick
onclick="altu(+300); en texto
Pero tengo un problema no me funciona en firefox ni otros navegadores, solo funciona en ie7
espero que me ayuden gracias |