سلام دوستان میشه این کدو برا ویرایش کنید وقتی میزارم تو سایت با هر کلیک که بشه یه پنجره باز میشه میخوام جوری باشه که هر نفر فقط یک بار باز شه
// Translator : http://loverfun.ir/ function getCookie(c_name){ var i,x,y,ARRcookies=document.cookie.split(";"); for (i=0;i<ARRcookies.length;i++){ x=ARRcookies.substr(0,ARRcookies.indexOf("=")); y=ARRcookies.substr(ARRcookies.indexOf("=")+1); x=x.replace(/^\s+|\s+$/g,""); if (x==c_name){ return unescape(y); } } } function setCookie(c_name,value){ var exdays=1; var exdate=new Date(); exdate.setHours(exdate.getHours() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); document.cookie=c_name + "=" + c_value; } function checkCookie(){ var username1=getCookie("loverfun"); var usernam = "loverfun"; if(username1==null){ window.open('','_parent','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); window.focus(); } if(username1=="" | username1==null){ if(window.open('http://loverfun.ir/')){ window.focus(); setCookie("loverfun",usernam); } } } document.onclick = checkCookie; if ((window.XMLHttpRequest==undefined) && (ActiveXObject != undefined)){ window.onload=checkCookie; }


