multiple jquery galleries
Posted
by
user1644650
on Stack Overflow
See other posts from Stack Overflow
or by user1644650
Published on 2012-09-03T21:36:13Z
Indexed on
2012/09/03
21:37 UTC
Read the original article
Hit count: 141
JavaScript
|jQuery
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>');
});
});
© Stack Overflow or respective owner