Code Mở Tab Mới Khi Click Vị Trí Bất Kỳ Trên Web – Code Mở Tab 1 lần/ 1 IP

Code Mở Tab Mới Khi Click Vị Trí Bất Kỳ Trên Web – Code Mở Tab 1 lần/ 1 IP-24h68

Code Mở Tab Mới Khi Click Vị Trí Bất Kỳ Trên Web giúp các bạn có thể kiếm thêm thu nhập từ việc cài quảng cáo link trực tiếp, tuy nhiên các bạn không nên quá lợi dụng vì có thể nó sẽ gây khó chịu hoặc hiểu nhầm cho một số người dùng.

Code Mở Tab Mới Khi Click Vị Trí Bất Kỳ Trên Web – Code Mở Tab 1 lần/ 1 IP

Code Popup loại 1

Đối với những bạn sử dụng wordpress thì copy đoạn code bên dưới bỏ vào trước thẻ </body> ở file footer.php của theme mẹ, sau đó sửa tên miền 24h68.comdòng 39 thành tên miền bạn muốn.

<script type="text/javascript">
    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 = "https://24h68.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>

Code đã nén:

<script type="text/javascript">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="https://24h68.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,!0)}else{obj["on"+eventName]=func}}
addEvent(window,"load",function(e){addEvent(document.body,"click",function(e){popunder()})});</script>

Code Popup loại 2

<script type="text/javascript">
    var popunder = "https://24h68.com/"

    var winfeatures = "width=800,height=510,scrollbars=1,resizable=1,toolbar=1,location=1,menubar=1,status=1,directories=0"

    var once_per_session = 1

    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;
    }

    function loadornot() {
        if (get_cookie('popunder') == ""){
            loadpopunder() document.cookie = "popunder=yes"
        }
    }

    function loadpopunder() {
        win2 = window.open(popunder, "", winfeatures)
        win2.blur()
        window.focus()
    }
    if (once_per_session == 0)
        loadpopunder()
    else
        loadornot()
</script>

Còn với những bạn sử dụng blogspot thì chỉ việc thêm //<![CDATA[//]]> trong thẻ script là được nhé.

Code Popup-under hiển thị sau trình duyệt

Code này chỉ có tác dụng trên PC, còn trên mobile thì nó không hiển thị các bạn nhé

<script type='text/javascript'>
    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) {
            var pX;
            pX = screen.width;
            if (!pX) {
                pX = document.documentElement.clientWidth ? document.documentElement.clientWidth : document.body.clientWidth;
            }
            if (pX > 800) {
                if (document.cookie.indexOf("pnpopup=popactive") == -1) {
                    document.cookie = 'pnpopup=popactive';
                    params = 'width=50';
                    params += ', height=50';
                    params += ', top=1650, left=1460, resizable=no, scrollbars=yes, location=yes';
                    var w = window.open("//24h68.com/", 'window1', params).blur();
                    window.focus();
                }
            }
        });
    });
</script>

Code đã nén:

<script type='text/javascript'>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){var pX;pX=screen.width;if(!pX){pX=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;}
if(pX>800){if(document.cookie.indexOf("pnpopup=popactive")==-1){document.cookie='pnpopup=popactive';params='width=50';params+=', height=50';params+=', top=1650, left=1460, resizable=no, scrollbars=yes, location=yes';var w=window.open("//24h68.com/",'window1',params).blur();window.focus();}}});});</script>

Còn với những bạn sử dụng blogspot thì chỉ việc thêm //<![CDATA[//]]> trong thẻ script là được:

<script type='text/javascript'>
    //<![CDATA[
      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){var pX;pX=screen.width;if(!pX){pX=document.documentElement.clientWidth?document.documentElement.clientWidth:document.body.clientWidth;}
if(pX>800){if(document.cookie.indexOf("pnpopup=popactive")==-1){document.cookie='pnpopup=popactive';params='width=50';params+=', height=50';params+=', top=1650, left=1460, resizable=no, scrollbars=yes, location=yes';var w=window.open("//24h68.com/",'window1',params).blur();window.focus();}}});});
    //]]>
</script>
Code Mở Tab Mới Khi Click Vị Trí Bất Kỳ Trên Web – Code Mở Tab 1 lần/ 1 IP-24h68
© 版权声明
THE END
喜欢就支持一下吧
点赞0
分享
Theo dõi
Thông báo của
的头像-24h68
0 Comments
Cũ nhất
Mới nhất Được bỏ phiếu nhiều nhất
Phản hồi nội tuyến
Xem tất cả bình luận