Subversion Repositories My Stuff

Rev

Go to most recent revision | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

$(document).ready(function(){
    var galleries = $('.ae-gallery').aeGallery({
            loader_image: 'modules/Gallery/templates/ae-gallery/loader.gif',
            slideshow: {
              autostart: false,
              speed: 5000,
              start_label: 'Start',
              stop_label: 'Stop',
              stop_on_scroll: false,
            },  
            callbacks: {
              init: function() {
                this.preloadImage(0);
              },
          afterImageVisible: function() {
                        $('.ae-image > img').click(function(){
                                $.fancybox(
                                                {
                                                        'speedIn':      300,
                                                        'speedOut':     300,
                                                        'overlayColor': '#000',
                                                        'overlayOpacity':       0.7,
                                                        'centerOnScroll': true,
                                                        'titlePosition': 'over',
                                                        'transitionIn':  'elastic',
                                                        'transitionOut': 'elastic',
                                                        'showNavArrows': false,
                                                        'showCloseButton':      true,
                                                        'href': $(this).attr('src'),
                                                        'title': $(this).parent().find('p').html()
                                                }
                                        );
                        });
                var context = this;
                this.preloadImage(this.current_index + 1);
                }
          }
    });
});