Where to get this same exit popup?

by Sphinx
3 replies
See this site, and exit it, the popup will have a "$20 discount" banner on the left corner, along with the javascript exit confirmation window, what service or plugin they use?

See the exit popup here - The 3 Week Diet - Official Website | Lose Weight In 3 Weeks | Program and Plan | The Best 3 Week Diet Book

Anyone any idea?

Thank you very much for your input.
#exit #popup
  • Profile picture of the author DIABL0
    You will need to edit the url for the banner, the text on the pop up and the url for when they click stay on page.


    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
    <div id="ExitDiv" style="display:none;position:absolute;left:10px;;t op:10px;margin:auto;z-index:1000;"> <img id="ExitImage" src="http://www.3weekdiet.com/images/pop.png" border="0"> </div>
    <div id="ExitBackDiv" style="display: none; position: absolute; left: 0px; top: 0px; overflow: auto; height: 100%; width: 100%; background: #000000; opacity: 0.6; filter: alpha(opacity=60); z-index: 999;"> </div>
    <script type="text/javascript">


    $(document).ready(function(){
    function getParameterByName(name)
    {
    name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
    var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
    results = regex.exec(location.search);
    return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
    }
    function get_browser_version()
    {
    var N=navigator.appName, ua=navigator.userAgent, tem;
    var M=ua.match(/(opera|chrome|safari|firefox|msie)\/?\s*(\.?\d+(\.\d+)*)/i);
    if(M && (tem= ua.match(/version\/([\.\d]+)/i))!= null) M[2]= tem[1];
    M=M? [M[1], M[2]]: [N, navigator.appVersion, '-?'];
    return M[1];
    }
    // Exit Popup
    var data = "\n\r\n\r HOLD ON! \n\r\n\r Get the FULL SYSTEM for only $7.00\n\r\n\r Click the \"Stay On Page\" button below!\n\r\n\r";
    //loadPopup(data,url,delay);
    var popmsg="\n\r\n\r HOLD ON! \n\r\n\r Get the FULL SYSTEM for only $7.00\n\r\n\r Click the \"Stay On Page\" button below!\n\r\n\r";
    var popexurl = "http://www.3weekdiet.com/discount2.html?code=current&couponid=16009";
    var a= getParameterByName("a") ;
    var s1= getParameterByName("s1") ;
    var trx= getParameterByName("trx") ;
    if(a!="" && a!=" ")
    {
    popexurl+="?a="+a;
    }
    if(s1!="" && s1!=" ")
    {
    popexurl+="&s1="+s1;
    }
    if(trx!="" && trx!=" ")
    {
    popexurl+="&trx="+trx;
    }



    if (popexurl != "") {


    var __redirect_to = popexurl;
    var _tags = ['button', 'input', 'a'];
    var _els, _i, _i2;


    $(document).on('click','a,button,input',function() {


    window.onbeforeunload = function() {};
    });


    window.onbeforeunload = function (){

    window.scrollTo(0, 0);
    document.getElementById('ExitBackDiv').style.displ ay = 'block';
    document.getElementById('ExitDiv').style.display = 'block';

    setTimeout(function() {
    setTimeout(function() {
    document.getElementById('ExitBackDiv').style.displ ay = 'none';
    document.getElementById('ExitDiv').style.display = 'none';

    window.onbeforeunload = function() {};

    window.location.assign(popexurl);

    }, 100);
    },1);

    return popmsg;
    };


    }


    var params = getSearchParameters();

    if(params.e == "n") {
    //alert('me');
    window.onbeforeunload = function() {};
    }

    });
    </script>
    Signature
    How to Build LARGE EMAIL LISTS on a Budget and MONETIZE Like a PRO
    20+ Years Exp . . . . . . . . . . . . Email - CPA - PPL
    {{ DiscussionBoard.errors[10028445].message }}
  • Profile picture of the author Sphinx
    Wow, thank you for the JS code, will test it soon.
    {{ DiscussionBoard.errors[10028536].message }}
  • Profile picture of the author DIABL0
    It took me a few minutes to figure out, so I tested it before posting to make sure it worked. So shouldn't be a problem. If your page is already loading jquery.min.js, then you don't need the first line. I added that in case it wasn't.
    Signature
    How to Build LARGE EMAIL LISTS on a Budget and MONETIZE Like a PRO
    20+ Years Exp . . . . . . . . . . . . Email - CPA - PPL
    {{ DiscussionBoard.errors[10029838].message }}

Trending Topics