Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function($) {
- $(document).ready(function() {
- $(".min").click(function() {
- var img = $(this);
- var src = img.attr('src');
- $('body').append('<div class="popup">'+
- '<div class="popup_bg"></div>'+
- '<img src="'+src+'" class="popup_img" />'+'</div>');
- $('.popup').fadeIn(700);
- $('.popup_bg').click(function() {
- $('.popup').fadeOut(700);
- setTimeout(function() {
- $('.popup').remove();
- }, 700);
- });
- });
- });
- })(jQuery);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement