Ver Mensaje Individual
  #7 (permalink)  
Antiguo 19/06/2015, 04:43
Mappanare
 
Fecha de Ingreso: mayo-2015
Mensajes: 12
Antigüedad: 9 años
Puntos: 0
Respuesta: Menú para abrir imágenes

Hola!!

Ya dije que no tengo nada de experiencia. Estoy intentando añadir cosas, cambiando el orden de otras, y todo para que no me funcione nada...

En realidad lo que estaba buscando hacer es lo siguiente: algo como lo que reproduce el siguiente script, pero que en vez de ampliar la imagen, lo que haga es que la pequeña sea una imagen que, cuando le hagas click, la grande sea otra. Por ejemplo, la imagen 1 sea un número 1 y se abra la primera imagen que hay cargada. Y así sucesivamente. Y todo esto centrado en la página.

Código Javascript:
Ver original
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4.   <head>
  5.     <title>
  6.       Galería
  7.     </title>
  8.     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  9.     <script type="text/javascript">
  10.       //<![CDATA[
  11.       function galeria(x){
  12.         document.ampliar.src=x.src;
  13.       }
  14.       //]]>
  15.     </script>
  16.   </head>
  17.   <body>
  18.     <p>
  19.       <img src="
  20. http://files.123inventatuweb.com/acens8631/image/doc050515-001.jpg
  21. " alt="MÓDULOS BAJOS" width="60" height="60" onclick="galeria(this);"/>
  22.       <img src="
  23. http://files.123inventatuweb.com/acens8631/image/modeloficha.jpg
  24. " alt="MÓDULOS ALTOS" width="60" height="60" onclick="galeria(this);" />
  25.       <img src="
  26. http://files.123inventatuweb.com/acens8631/image/68796dc99c3746c392b757947552c512.jpg
  27. " alt="MÓDULOS COLUMNA" width="60" height="60" onclick="galeria(this);" />
  28.       <br />
  29.       <br />
  30.       <img src="
  31. http://files.123inventatuweb.com/acens8631/image/doc050515-001.jpg
  32. " alt="" width="1000" height="600" name="ampliar" />
  33.     </p>
  34.   </body>
  35. </html>

Es muy difícil para alguien sin experiencia??

Muchísimas gracias, de verdad.