Ver Mensaje Individual
  #1 (permalink)  
Antiguo 03/06/2010, 15:37
esaenz22
(Desactivado)
 
Fecha de Ingreso: abril-2008
Mensajes: 787
Antigüedad: 16 años
Puntos: 7
Pregunta mostrar galeria en jquery en filas

buenas a todos. descargue una galeria http://monc.se/galleria y la implemente en uno de mis proyectos.

mostre la galeria en filas cada uno asi como esto.



pero cuando lo puse solo me muestra la primera galeria que me muestra y las demas no cargan las fotos.

estuve colocandole en el js una variable para mostrar las 4 galerias con el id,pero aun asi no me muestra las demas galerias.

Código Javascript:
Ver original
  1. $(document).ready(function(i){ 
  2.         $('.gallery_demo_unstyled').addClass('gallery_demo'); // adds new class name to maintain degradability
  3.         $('ul.gallery_demo').galleria({
  4.             history   : true, // activates the history object for bookmarking, back-button etc.
  5.             clickNext : true, // helper for making the image clickable
  6.             insert    : '#main_image'+i, // the containing selector for our main image
  7.             onImage   : function(image,caption,thumb) { // let's add some image effects for demonstration purposes
  8.                
  9.                 // fade in the image & caption
  10.                 image.css('display','none').fadeIn(1000);
  11.                 caption.css('display','none').fadeIn(1000);
  12.                
  13.                 // fetch the thumbnail container
  14.                 var _li = thumb.parents('li');
  15.                
  16.                 // fade out inactive thumbnail
  17.                 _li.siblings().children('img.selected').fadeTo(500,0.3);
  18.                
  19.                 // fade in active thumbnail
  20.                 thumb.fadeTo('fast',1).addClass('selected');
  21.  
  22.             },
  23.             onThumb : function(thumb) { // thumbnail effects goes here
  24.                
  25.                 // fetch the thumbnail container
  26.                 var _li = thumb.parents('li');
  27.                
  28.                 // if thumbnail is active, fade all the way.
  29.                 var _fadeTo = _li.is('.active') ? '1' : '0.3';
  30.                
  31.                 // fade in the thumbnail when finnished loading
  32.                 thumb.css({display:'none',opacity:_fadeTo}).fadeIn(1500);
  33.                
  34.                 // hover effects
  35.                 thumb.hover(
  36.                     function() { thumb.fadeTo('fast',1); },
  37.                     function() { _li.not('.active').children('img').fadeTo('fast',0.3); } // don't fade out if the parent is active
  38.                 )
  39.                
  40.             }
  41.            
  42.         });
  43.     });

estuve pensando tambien repetir la misma funcion y crear los demas id para que me muestren las demas galerias.

habra otra galeria para que pueda repetirlas en filas ?.

me pueden ayudar en ello por favor ?.