All images from a DIV into gallery
  • Hi there!

    I need to make all images from a div to showup as a gallery. I am able to make each image on a div appear, but can't make them belong to the same gallery.

    My html:

    image1
    image2
    image3
    image4
    image5


    JS:
    $("div.tab_content a").prettyPhoto({animation_speed:'normal',theme:'light_square',slideshow:3000, autoplay_slideshow: false});

    Tried to add something like: $("div.tab_content a[rel^='prettyPhoto']").prettyPhoto but it isn't working.

    Any help please?
  • solved! simply added same rel attribute to all elements in the div.

    $(document).ready(function(){

    $('div.tab_content a').attr('rel', 'prettybox[grandsuite]')

    $("div.tab_content a").prettyPhoto({animation_speed:'normal',theme:'facebook',slideshow:3000, autoplay_slideshow: false});

    });

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!