![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/03/2005, 03:08
|
![Avatar de KarlanKas](http://static.forosdelweb.com/customavatars/avatar11549_2.gif) | Moderador extraterrestre | | Fecha de Ingreso: diciembre-2001 Ubicación: Madrid
Mensajes: 6.987
Antigüedad: 23 años, 1 mes Puntos: 61 | |
Cambia el name de mainpic por id:
Esto: Código PHP: <img src="photos/01.jpg" alt="mainPic" name="mainPic" width="315" height="450"/>
por esto: Código PHP: <img src="photos/01.jpg" alt="mainPic" id="mainPic" width="315" height="450"/>
Y en el script cambia: Código PHP: document.mainPic.src = s;
por Código PHP: document.getElementById("mainPic").src=s;
Espero que te sirva!
__________________ Cómo escribir
No hay pregunta tonta, sino tonto que quiere seguir en la ignorancia.
Última edición por KarlanKas; 08/03/2005 a las 03:09 |