تعديل

السبت، 11 مايو 2013

كود فتحة اجبارية للمنتديات والمدونات والمواقع - يعمل 100% 2013

كود فتحة اجبارية للمنتديات والمدونات والمواقع - يعمل 100%

هناك نوعين من الاكواد 

1- الكود الاول يظهر الى جميع الزوار والاعضاء
2- الكود الثانى يظهر الى الزوار فقط لاصحاب المواقع والمنتديات



الكود الاول

الرمز:

<!-- بداية كود الانبثاق by romio sama -->

 <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(offset, 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()+parseInt(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("رابط صفحة الانبثاق الذي سوف تظهر ", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1");
}
}
//--> </script>
<!-- نهاية كود الانبثاق by romio sama -->



الكود الثانى
الرمز:

<!-- بداية كود الانبثاق by romio sama -->

<if condition="$show['guest']">

 <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(offset, 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()+parseInt(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("رابط صفحة الانبثاق الذي سوف تظهر ", "rwmrgfdqpop", "scrollbars = 1, resizable = 1,status = 1");
}
}
//--> </script>
</if>
<!-- نهاية كود الانبثاق by romio sama -->


يضع الكود الاول فى مدونات بلوجر نظر لعدم وجود تسجيل اعضاء وكل الدخول زوار فقط

0 commentaires:

إرسال تعليق

Twitter Delicious Facebook Digg Stumbleupon Favorites More