Ver Mensaje Individual
  #1 (permalink)  
Antiguo 13/04/2007, 22:30
yoelnacho
 
Fecha de Ingreso: diciembre-2006
Mensajes: 28
Antigüedad: 17 años, 4 meses
Puntos: 0
cambiar atributos de un tag html

Hola, tengo que cambiar los atributos de un tag html, mediante una variable php.
Por ejemplo:(el atributo height del tag <iframe>).

<html>...
<body>...
<iframe name="2" width="702" frameborder="0" id="2" height="300" </iframe>

En definitiva sería:
*-designar una variable
*-por metodo GET cambiar el valor
*-y que el atributo "height" tome el valor de esta variable.

puede ser algo así?
<iframe>
<?
$altura=$_GET['altura'];
print ("<height='$altura'>");
?>
</iframe>


Alguien me podría ayudar?.
Gracias