multiple jquery galleries
- by user1644650
I'm trying to separate two jQuery galleries, so they don't interlink on my html page:
http://mashanova.com/myFAQ/faqGallery.html#
here is the html:
here is javascript:
$(document).ready(function(){
$('.gallery_thumbnails a').click(function(e){
e.preventDefault();
$('.gallery_thumbnails a').removeClass('selected');
$('.gallery_thumbnails a').children().css('opacity','1');
$(this).addClass('selected');
$(this).children().css('opacity','.4');
var photo_fullsize = $(this).attr('href');
var photo_preveiw = photo_fullsize.replace('fullsize','preview');
$('.gallery_preview').html('<a href="'+photo_fullsize+'" style="background-image:url('+photo_preveiw+');"></a>');
});
});