كود فتحة إجبارية تفتح مرة واحدة لكل إيبي كل 24 ساعة-غير مزعجة للزوار-
1
تعليقات
السلام عليكم ورحمة الله
قم بتغيير http://www.essaouira4you.com برابط الموقع الذي تريد عمل فتحة إجبارية له
لاتحرمونا من ردودكم المشجعة
الكثير يعلم الدور الذي تلعبه الفتحات الإجبارية لزيادة الزوار لمدونة او موقع معين وحيث تعتبر هذه الطرق من احدث ما يتبعه المدونون العرب خصوصا لكسب زوار إجباريا لكن احيانا كثيرة ما يقع اصحاب المدونات في اخطاء وهي ان كثرة الفتحات الإجبارية تزعج الزائر و تجعله يمل و بالتالي يهجر المدونة ولذلك بحثث كثيرا لأجلب لكم هذا الكود وهو كود فتحة إجبارية بالكوكيز تفتح على كل إيبي فتحة واحدة إجبارية في كل 24 ساعة وبالتالي لا تكون مزعجة للزوار أبدا.
طريقة وضع الكود :
إبحث ىفي القالب عن <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://www.essaouira4you.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://www.essaouira4you.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://www.essaouira4you.com";
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://www.essaouira4you.com برابط الموقع الذي تريد عمل فتحة إجبارية له
لاتحرمونا من ردودكم المشجعة
Tags :
عالم بلوجر
كود رائع تسلم ايديك
ردحذف