![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
13/09/2005, 13:42
|
![Avatar de onlykfk](http://static.forosdelweb.com/customavatars/avatar113307_1.gif) | | | Fecha de Ingreso: agosto-2005 Ubicación: 20°45' Latitud Norte 100°
Mensajes: 121
Antigüedad: 19 años, 5 meses Puntos: 1 | |
<img src="mmc.gif" myPropiedad="" width="30px" id="prueba">
<!-- Inmediatamente despues de crear el objeto asignasla propiedad -->
<script>
document.all['prueba'].myPropiedad = document.all['prueba'].width;
</script>
Este ejemplo en caso de un tag de imagen, tambien es valido
<img src="http://igomezcsc/mmc.gif" myPropiedad='' width="30px" id="prueba" onload="this.myPropiedad = this.width;">
Saludos
__________________ Yo tan sólo se, que no he senado |