Ver Mensaje Individual
  #2 (permalink)  
Antiguo 25/03/2014, 07:53
Avatar de enlinea777
enlinea777
 
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 16 años
Puntos: 127
Respuesta: Script para alternar imágenes pulsando en thumbnails

el codigo lo colocas en el header
asi
Código Javascript:
Ver original
  1. <script>
  2. $(function(){
  3.     $('img.thumbnail').click(function() {
  4.           $('#bigImg').attr('src', $(this).attr('src').replace(/\.jpg/, 'Big.jpg'));
  5.           // Change name and show
  6.     }).first().click(); // And activate the first one
  7. });
  8. </script>
y en el html colocas tdas las imagenes asi:
Código HTML:
Ver original
  1. <img class="thumbnail" src="tuimagen" />