عرض مشاركة واحدة
قديم 03-27-2014, 01:12 PM   #1
aminahou
مدون جديد
 
تاريخ التسجيل: Feb 2014
المشاركات: 17
افتراضي عمل الصفحات الاجبارية في بلوجر

| اضافات بلوجر
السلام عليكم

اليوم سوف اقدم لكم كود صغير و مفيد عن كيفية عمل الصفحات الاجبارية في مدونة بلوجر

ادهب الى
لوحة التحكم
التخطيط
إضافة أداة
Html/javascript

و انسخ الكود التالي
<!-- بداية كود الانبثاق by wael gamal --> <script language="JavaScript1.1"> var popunder function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { // if cookie exists offset += search.length // set index of beginning of value end = document.cookie.indexOf(";", offset); // set index of end of cookie value if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(off set, end)) } } return returnvalue; } popfrequency="0 minutes" function resetcookie(){ var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()-0) document.cookie = "popunder=;path=/;expires=" + expireDate.toGMTString() } function loadornot(){ if (get_cookie('popunder')==''){ loadpopunder() var expireDate = new Date() expireDate.setMinutes(expireDate.getMinutes()+pars eInt(popfrequency)) document.cookie = "popunder="+parseInt(popfrequency)+";path=/;expires=" + expireDate.toGMTString() } } function loadpopunder(){ document.write('<body onclick="rwmrgfdq_Popup()" >'); } if (get_cookie('popunder')!=parseInt(popfrequency)) resetcookie() loadornot() </script> <script type="text/javascript"> <!-- var opened; function rwmrgfdq_Popup() { if(opened != 1) { opened = 1; window.open("http://meftahbloger.blogspot.com/", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1"); } } //--> </script> <!-- نهاية كود الانبثاق by wael gamal --> و استبدل رابط http://meftahbloger.blogspot.com برابط مدونتك

انتهى بفضل الله


التسميات: اضافات بلوجر


المصدر: مدونة مفتاح بلوجر http://meftahbloger.blogspot.com/201...#ixzz2x1k4Kwrx

الدعم العربي

aminahou غير متواجد حالياً   رد مع اقتباس