Pereiti prie turinio

Gal kas galėtumėt pasidalinti popup skriptu


Rekomenduojami pranešimai

Sveiki, galėtumėt pasidalinti popup skriptu, kuris išmeta naują saitą vos užėjus į saitą ir kad neblokuotu naršyklės?

Reikia kad ant betkur paspaudus pele išmestu papildoma svetainę.

 

bandziau sy neveikia man <script type="text/javascript" src="http://svetaine.lt/pop.js"></script>

Nuoroda į pranešimą
Dalintis kituose puslapiuose

Į google įlindau ir paklausiau.

 

<a href="http://svetaine.lt/pop.js" onclick="javascript:void window.open('http://svetaine.lt/pop.js','1412690694706','width=700,height=500,toolbar=0,menubar=0,location=0,status=1,scrollbars=1,resizable=1,left=0,top=0');return false;">Pop-up Window</a>

 

iš puslapio http://www.textfixer.com/html/javascript-pop-up-window.php

Nuoroda į pranešimą
Dalintis kituose puslapiuose
  • po 3 savaičių...

I saita imeti tokia eilute

 

<script src="http://tavodomenas.com/popup.js" type="text/javascript"></script>

 

O i popup.js toki koda:

 

        function prPu(e, t) {
	    function d() {
	        try {
	            c = Math.floor(document.cookie.split(h + "Cap=")[1].split(";")[0])
	        } catch (e) {}
	        return l <= c || document.cookie.indexOf(h + "=") !== -1
	    }
	    function v(e, t, i, s, o, u) {
	        if (d()) return;
	        var a = "toolbar=no,scrollbars=yes,location=yes,statusbar=yes,menubar=no,resizable=1,width=" + i.toString() + ",height=" + s.toString() + ",screenX=" + o + ",screenY=" + u;
	        document.onclick = function () {
	            if (d()) return;
	            window.open("javascript:window.focus();", "_self", "");
	            r = n.window.open(e, t, a);
	            if (r) {
	                var i = new Date;
	                document.cookie = h + "=1;expires=" + (new Date(i.setTime(i.getTime() + f))).toGMTString() + ";path=/";
	                i = new Date;
	                document.cookie = h + "Cap=" + (c + 1) + ";expires=" + (new Date(i.setTime(i.getTime() + 84600 * 1e3))).toGMTString() + ";path=/";
	                m()
	            }
	        }
	    }
	    function m() {
	        try {
	            r.blur();
	            r.opener.window.focus();
	            window.self.window.blur();
	            window.focus();
	            if (p.firefox) g();
	            if (p.webkit) y()
	        } catch (e) {}
	    }
	    function g() {
	        var e = window.open("about:blank");
	        e.focus();
	        e.close()
	    }
	    function y() {
	        var e = document.createElement("a");
	        e.href = "about:blank";
	        e.target = "PopHelper";
	        document.getElementsByTagName("body")[0].appendChild(e);
	        e.parentNode.removeChild(e);
	        var t = document.createEvent("MouseEvents");
	        t.initMouseEvent("click", true, true, window, 0, 0, 0, 0, 0, true, false, false, true, 0, null);
	        e.dispatchEvent(t);
	        window.open(e.href, e.target).close()
	    }
	    var n = top != self && typeof top.document.location.toString() === "string" ? top : self;
	    var r = null;
	    t = t || {};
	    var i = t.name || Math.floor(Math.random() * 1e3 + 1);
	    var s = t.width || window.outerWidth || window.innerWidth;
	    var o = t.height || window.outerHeight - 100 || window.innerHeight;
	    var u = typeof t.left != "undefined" ? t.left.toString() : window.screenX;
	    var a = typeof t.top != "undefined" ? t.top.toString() : window.screenY;
	    var f = t.wait || 3600;
	    f = f * 1e3;
	    var l = t.cap || 2;
	    var c = 0;
	    var h = t.cookie || "__.popunder";
	    var p = function () {
	        var e = navigator.userAgent.toLowerCase();
	        var t = {
	            webkit: /webkit/.test(e),
	            mozilla: /mozilla/.test(e) && !/(compatible|webkit)/.test(e),
	            chrome: /chrome/.test(e),
	            msie: /msie/.test(e) && !/opera/.test(e),
	            firefox: /firefox/.test(e),
	            safari: /safari/.test(e) && !/chrome/.test(e),
	            opera: /opera/.test(e)
	        };
	        t.version = t.safari ? (e.match(/.+(?:ri)[\/: ]([\d.]+)/) || [])[1] : (e.match(/.+(?:ox|me|ra|ie)[\/: ]([\d.]+)/) || [])[1];
	        return t
	    }();
	    if (d()) {
	        return
	    } else {
	        v(e, i, s, o, u, a)
	    }
	}
	prPu('http://www.google.lt', {
	    name: "pop",
	    width: screen.width,
	    height: screen.height,
	    top: 0,
	    left: 0,
	    cookie: 'prPop124507',
	    wait: 0,
	    cap: 1
	})

Nuoroda į pranešimą
Dalintis kituose puslapiuose

Prisijunkite prie diskusijos

Jūs galite rašyti dabar, o registruotis vėliau. Jeigu turite paskyrą, prisijunkite dabar, kad rašytumėte iš savo paskyros.

Svečias
Parašykite atsakymą...

×   Įdėta kaip raiškusis tekstas.   Atkurti formatavimą

  Only 75 emoji are allowed.

×   Nuorodos turinys įdėtas automatiškai.   Rodyti kaip įprastą nuorodą

×   Jūsų anksčiau įrašytas turinys buvo atkurtas.   Išvalyti redaktorių

×   You cannot paste images directly. Upload or insert images from URL.

Įkraunama...
  • Dabar naršo   0 narių

    Nei vienas registruotas narys šiuo metu nežiūri šio puslapio.

×
×
  • Pasirinkite naujai kuriamo turinio tipą...