<head><script src="https://rozup.ir/up/nooramir/code/popup/jquery.min.js" type="text/javascript"></script>
<link href="https://rozup.ir/up/nooramir/code/popup/style.css" rel="stylesheet">
<script type="text/javascript">
function setPosVer(){
var $popupWin =$('.popup-win');
var popupWinWidth=$popupWin.width();
$popupWin.css('left',$popupWin.parent().width()/2-$popupWin.width()/2);
};
function setPosHor(){
var $popupWin =$('.popup-win');
var popupWinHeight=$popupWin.height();
$popupWin.css('top',$(window).height()/2-$popupWin.height()/2);
};
$(function(){
setPosVer();
setPosHor();
$('.show-popup').click(function(){
$('.popup-screen').fadeIn(300,function(){
$('.popup-win').slideDown();
});
});
$('.close-btn').click(function(){
$('.popup-win').slideUp(300,function(){
$('.popup-screen').fadeOut();
});
});
});
$(window).resize(function(){
setPosVer();
setPosHor();
});
</script>
</head>
<body>
<div class="popup-screen"></div>
<div class="popup-win">
لطفا به این سسایت مراجعه کنید:
<a href="http://dl52.rozblog.com/">دانلود 52</a>
<div class="close-btn"></div>
</div>
<button class="show-popup btn-position">کلیک کنید</button>
</body>