كود فتحة اجبارية بالكوكيز لمدونات بلوجر / يوم واحد/ ايبي واحد/ مرة واحدة




كود الفتحة الاجبارية لمدونات بلوجر بنظام الكوكيز
يفتح مرة واحدة باليوم و لا يسبب اي ازعاج للزائر و يتخطى جميع المتصفحات

طريقة التركيب كالتالي
من اعدادات المدونة ادهب الى قالب تم تعديل هتمل
ابحث عن
<body>
و استبدلها باحد هده الاكواد

الكود الاول

<body onclick='popunder();'>
<script>
/* <![CDATA[ */
function Set_Cookie(a,b,c,e,f,g){var d=new Date;d.setTime(d.getTime());d=new Date(d.getTime()+c);document.cookie=a+"="+escape(b)+(c?";expires="+d.toGMTString():"")+(e?";path="+e:"")+(f?";domain="+f:"")+(g?";secure":"")}function Get_Cookie(a){var b=document.cookie.indexOf(a+"="),c=b+a.length+1;if(!b&&a!=document.cookie.substring(0,a.length)||-1==b)return null;a=document.cookie.indexOf(";",c);-1==a&&(a=document.cookie.length);return unescape(document.cookie.substring(c,a))} function Delete_Cookie(a,b,c){Get_Cookie(a)&&(document.cookie=a+"="+(b?";path="+b:"")+(c?";domain="+c:"")+";expires=Mon, 11-November-2020 00:00:01 GMT")}
function popunder(){null==Get_Cookie("cucre")&&(Set_Cookie("cucre","cucre Popunder","1","/","",""),
pop=window.open("http://issam-escobar.blogspot.com","windowcucre"),
pop.blur(),window.focus())}function addEvent(a,b,c){a.attachEvent?a.attachEvent("on"+b,c):a.addEventListener?a.addEventListener(b,c,!0):a["on"+b]=c} addEvent(window,"load",function(){addEvent(document.body,"click",function(){popunder()})});
/* ]]> */
</script>


مع مراعاة تغيير

http://issam-escobar.blogspot.com

الى رابط الموقع المراد فتحه للزائر



الكود الثاني

<script>
//<![CDATA[
function Set_Cookie(name, value, expires, path, domain, secure) {
var today = new Date();
today.setTime(today.getTime());
var expires_date = new Date(today.getTime() + (expires));

document.cookie = name + "=" + escape(value) +
((expires) ? ";expires=" + expires_date.toGMTString() : "") +
((path) ? ";path=" + path : "") +
((domain) ? ";domain=" + domain : "") +
((secure) ? ";secure" : "");
}

function Get_Cookie(name) {

var start = document.cookie.indexOf(name + "=");
var len = start + name.length + 1;
if ((!start) &&
(name != document.cookie.substring(0, name.length))) {
return null;
}
if (start == -1) return null;
var end = document.cookie.indexOf(";", len);
if (end == -1) end = document.cookie.length;
return unescape(document.cookie.substring(len, end));
}

function Delete_Cookie(name, path, domain) {
if (Get_Cookie(name)) document.cookie = name + "=" +
((path) ? ";path=" + path : "") +
((domain) ? ";domain=" + domain : "") +
";expires=Mon, 11-November-1989 00:00:01 GMT";
}

function popunder() {
if (Get_Cookie('cucre') == null) {
Set_Cookie('cucre', 'cucre Popunder', '1', '/', '', '');
var url = "http://chehywat.ma/";
pop = window.open(url, 'windowcucre');
pop.blur();

window.focus();
}
}

function addEvent(obj, eventName, func) {
if (obj.attachEvent) {
obj.attachEvent("on" + eventName, func);
}
else if (obj.addEventListener) {
obj.addEventListener(eventName, func, true);
}
else {
obj["on" + eventName] = func;
}
}

addEvent(window, "load", function (e) {
addEvent(document.body, "click", function (e) {
popunder();
});
});
//]]>
</script>
<body onclick='popunder();'>
مع مراعاة تغيير

http://chehywat.ma
الى رابط الموقع المراد فتحه للزائر


Libellés : ,

Post a Comment

  1. شرح تركيب الكود بالفيديو على اليوتوب

    http://www.youtube.com/watch?v=KyBL4JHRMbg&feature=youtu.be

    ReplyDelete
  2. والله احلى شكر من عندي ليك
    كود رائع بعد التجربة كنت ابحث عنه منذ اكثر من 4 اشهر شكرا لك

    ReplyDelete
  3. Replies
    1. نعم اخي هدا الكود مخصص لمرة واحدة كل 24 ساعة لكي لا يمل الزائر لان معظم المواقع يهرب منها الزوار بسبب كثرة النوافد المنبثقة
      و اينما ضغط الزائر تفتح صفحة
      حاول تجنب مثل هده الاشياء
      لضمان رجوع الناس الى موقعك

      Delete
  4. حاولت اثبت الكود ماضبط معي

    ReplyDelete

[blogger]

Author Name

Contact Form

Name

Email *

Message *

Powered by Blogger.