Get exclusive CAP network offers from top brands

View CAP Offers

Exit Pop Scripts

[bsa_pro_ad_space id=2]
  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #666197
    Anonymous
    Inactive

    Chockee
    You can mess with this one it is set for an entry pop behind but you can change the values for what you want it to do.

    Brad


    Add this to your html page




    The Code


    And Upload this to the server the cookie will reset when you close your browser
    ___________________________

    function openpopup(){
    var popurl=”http://www.your-site here.com/popup.htm”
    winpops=window.open(popurl,””,”width=800,height=550,toolbar=1,location=1,directories=0,status=1,scrollbars=1,menubar=1,resizable,”)
    window.focus();
    }

    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(‘poppedup’)==”){
    openpopup()
    document.cookie=”poppedup=yes”
    }
    }

    loadornot()

    #666199
    Anonymous
    Inactive

    perfect – I’ll have a play but its exactly what I was looking for

Viewing 2 posts - 1 through 2 (of 2 total)