Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(".gallery a:has(img)").click(function() {
- var largePath = $(this).attr("href");
- var image = $(".photo_large");
- image.fadeOut('500', function () {
- image.attr({ src: largePath }) ;
- image.fadeIn('500');
- });
- var description = $(this).next(".description").css("display", "inline");
- $(".caption").html(description);
- return false;
- });
- $(".gallery a:has(img)").click(function() {
- var largePath = $(this).attr("href");
- var image = $(".photo_large");
- image.fadeOut('500', function () {
- image.attr({ src: largePath }) ;
- image.fadeIn('500');
- });
- var description = $(this).next(".description");
- $(".caption").html(description.clone().css("display", "inline")); // <---- Changed
- return false;
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement