دوستان این کد پاپ آپ صد در صد کار میکنه و خود رزبلاگ داره از اون استفاده میکنه
اینم کد:
<script type="text/javascript">
document.popup = false;
function setCookie(name, value)
{
document.cookie = escape(name) + "=" + escape(value) + "; path=/";
}
function getCookie(name)
{
var exp = new RegExp(escape(name) + "=([^;]+)");
if (exp.test(document.cookie + ";"))
{
exp.exec(document.cookie + ";");
return unescape(RegExp.$1);
}
else return false;
}
document.popup = getCookie('popup');
function openPopup()
{
if (document.popup) return;
window.open('http://www.آدرس سایت شما','BehtarinFun.Com','toolbar=no,statusbar=no,location=no,scrollbars=yes,resizable=yes,width=800,height=600');
document.popup = true;
setCookie('popup', 'true');}
document.onclick = openPopup;
if ((window.XMLHttpRequest == undefined) && (ActiveXObject != undefined)) window.onload = openPopup;
</script>