Vanilla 2
Discussions
Activity
Sign In
prettyGallery support
All images from a DIV into gallery
Colucas
October 2011
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:
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?
Colucas
October 2011
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});
});
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
2,834
General
363
Showoff your stuff!
5
prettyComments support
7
prettySociable support
22
WP-prettyphoto support
198
prettyCheckboxes support
9
prettyGallery support
81
prettyMobile support
14
prettyPhoto support
2,118
prettyLoader support
12
INK - Support forum
5
Powered by Vanilla