X
$(function(){ $('.bnrPR1').mouseover(function(){ $('.gallery-image').fadeIn(500); }); $('.tv').mouseover(function(){ $('.gallery-image').fadeIn(500); }); $('.outer1, .outer2, .outer3').mouseover(function () { $('.gallery-image').fadeOut(500); $('.bnrPR1').fadeIn(500); $('.tv').fadeIn(500); }); $('.gallery-image').mouseout(function () { $(this).fadeOut(500); $('.bnrPR1').fadeIn(500); $('.tv').fadeIn(500); }); $('.gallery-image').click(function(){ var link = $('.bnrPR1').find('a').attr('href'); window.open(link, '_blank'); }); $('.close-banner').click(function () { $('.bnrPR1').css({'display':'none'}); $('.gallery-image').css({'display':'none'}); $(this).css({'display':'none'}); $('.tv').css({'display':'none'}); $('.outer1, .outer2, .outer3').css({'display':'none'}); $.post("https://www.zenskimagazin.rs/page/close",{banner_close:1},function(data){ }); }); });