رحيل المشاعر
07-03-2021, 10:02 PM
اضافة كود iframe للمنتدى
كيفية اضافة (http://tra-sh.com/vb/showthread.php?t=189734) anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) للمنتدي
موضوع اليوم سوف يكون عن [ anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) ] الكثير منا يضع اعلانات في منتده لكن بسبب
اضافة adblock (http://tra-sh.com/vb/showthread.php?t=189734) فانه ما رح يستفيد من الاعلانات لنه الاضافة تمنع ظهور الاعلانات
لكن اليوم سوف نحل هذه المشكله بطريقة سهل جدا
نذهب الى لوحة التحكم
ثم
ثم نختار الاستايل الذي نريد ان نضيف له [ anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) ]
في اخر قالب [ headinclude ] نضع الكود التالي
كود PHP:
<div class="afs_ads"> </div>
< script type="text/javascript">
(function() {
var message = "انت تستخدم
اضافة [ adblock (http://tra-sh.com/vb/showthread.php?t=189734) ] الرجاء اغلق الاضافة حتى تسطيع تصفح المنتدى بشكل جيد ";
var tryMessage = function() {
setTimeout(function() {
if(!document.getElementsByClassName) return;
var ads = document.getElementsByClassName('afs_ads'),
ad = ads[ads.length - 1];
if(!ad
|| ad.innerHTML.length == 0
|| ad.clientHeight === 0) {
alert(message);
//window.location.href = '[URL of the donate page. Remove the two slashes at the start of thsi line to enable.]';
} else {
ad.style.display = 'none';
}
}, 2000);
}
/* Attach a listener for page load ... then show the message */
if(window.addEventListener) {
window.addEventListener('load', tryMessage, false);
} else {
window.attachEvent('onload', tryMessage); //IE
}
})();
</script>
الان نحفظ تعديل و نشاهد النتيجه
كيفية اضافة (http://tra-sh.com/vb/showthread.php?t=189734) anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) للمنتدي
موضوع اليوم سوف يكون عن [ anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) ] الكثير منا يضع اعلانات في منتده لكن بسبب
اضافة adblock (http://tra-sh.com/vb/showthread.php?t=189734) فانه ما رح يستفيد من الاعلانات لنه الاضافة تمنع ظهور الاعلانات
لكن اليوم سوف نحل هذه المشكله بطريقة سهل جدا
نذهب الى لوحة التحكم
ثم
ثم نختار الاستايل الذي نريد ان نضيف له [ anti (http://tra-sh.com/vb/showthread.php?t=189734) adblock (http://tra-sh.com/vb/showthread.php?t=189734) ]
في اخر قالب [ headinclude ] نضع الكود التالي
كود PHP:
<div class="afs_ads"> </div>
< script type="text/javascript">
(function() {
var message = "انت تستخدم
اضافة [ adblock (http://tra-sh.com/vb/showthread.php?t=189734) ] الرجاء اغلق الاضافة حتى تسطيع تصفح المنتدى بشكل جيد ";
var tryMessage = function() {
setTimeout(function() {
if(!document.getElementsByClassName) return;
var ads = document.getElementsByClassName('afs_ads'),
ad = ads[ads.length - 1];
if(!ad
|| ad.innerHTML.length == 0
|| ad.clientHeight === 0) {
alert(message);
//window.location.href = '[URL of the donate page. Remove the two slashes at the start of thsi line to enable.]';
} else {
ad.style.display = 'none';
}
}, 2000);
}
/* Attach a listener for page load ... then show the message */
if(window.addEventListener) {
window.addEventListener('load', tryMessage, false);
} else {
window.attachEvent('onload', tryMessage); //IE
}
})();
</script>
الان نحفظ تعديل و نشاهد النتيجه