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
4,649
General
1,277
Showoff your stuff!
13
prettyComments support
18
prettySociable support
40
WP-prettyphoto support
290
prettyCheckboxes support
19
prettyGallery support
118
prettyMobile support
12
prettyPhoto support
2,833
prettyLoader support
16
INK - Support forum
13
Powered by Vanilla