Código HTML:
Ver original
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <script type="text/javascript"> // JavaScript Document function cambiar(cambiar_foto) { document.getElementById('cambiar').src=cambiar_foto } </script> </head> <body> <img src="prueba.jpg" id="cambiar"/> <br/> <br/> <img src="prueba_slide.jpg" style="cursor: pointer" onclick="cambiar('prueba.jpg');"/> <img src="prueba_slide2.jpg" style="cursor: pointer" onclick="cambiar('prueba2.jpg');"/> </body> </html>