Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 22nd May 2014, 12:21 PM   #1
Active Warrior
 
Join Date: 2014
Location: Israel
Posts: 53
Thanks: 94
Thanked 33 Times in 12 Posts
Default
exit pop code problem
Share on: 
fb share twitter share gplus share more share

hey guy's i know this topic may experience but i did find thousands of codes but my problem is:
i have a landing page, when you click on close all the codes work great but on the landing page you need to put your e-mail, and when adding the email and clicking on the send button it's opening a exit pop that i don't want!. can some one help me with this problem?
hermonk9 is offline  
Unread 22nd May 2014, 12:39 PM   #2
HyperActive Warrior
War Room Member
 
Anne Laidlaw's Avatar
 
Join Date: 2009
Location: Mississauga, Ontario
Posts: 425
Thanks: 98
Thanked 91 Times in 82 Posts
Default
Re: exit pop code problem
Share on: 
fb share twitter share gplus share more share

Are you using wordPress? If so, what exit pop plugin are you using?

Anne L

Giant Plugin Biz High Quality WP Plugin Package
WP Plugins Are Hott!! Claim Your Piece Of The Pie Today!
Free Squeeze Page Creator - FREE Instant Access To Alou's Killer Squeeze Page Creator.
Alou.com - Wordpress SEO - Latest free WordPress SEO, Plugins, Themes and more!
Anne Laidlaw is offline  
Unread 22nd May 2014, 02:04 PM   #3
Active Warrior
 
Join Date: 2014
Location: Israel
Posts: 53
Thanks: 94
Thanked 33 Times in 12 Posts
Default
Re: exit pop code problem
Share on: 
fb share twitter share gplus share more share

Originally Posted by Anne Laidlaw View Post

Are you using wordPress? If so, what exit pop plugin are you using?

Anne L
No i do not use wordpress
hermonk9 is offline  
Unread 22nd May 2014, 02:44 PM   #4
Active Warrior
 
Join Date: 2014
Location: Israel
Posts: 53
Thanks: 94
Thanked 33 Times in 12 Posts
Default
Re: exit pop code problem
Share on: 
fb share twitter share gplus share more share

I use this code for my exit pop

<script language="javascript" type="text/javascript">
//<![CDATA[

var exitsplashmessage = "===================================\n" + "WAIT! LET ME GIVE YOU A DISCOUNT\n" + "===================================\n\n" + "Try Ultimate Spanish RISK-FREE for Only $37!\n\n" + "CLICK THE *STAY ON PAGE* BUTTON RIGHT NOW!\n\n" + "===================================\n" + "> Secure Your Discount Now <\n" + "===================================";
var exitsplashpage = 'index1.html';

function addLoadEvent(func) {
var oldonload = window.onload;
if (typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); } }
}

function addClickEvent(a,i,func) {
if (typeof a[i].onclick != 'function') { a[i].onclick = func; }
}

var theDiv = '<div id="ExitSplashDiv" style="display:block; width:100%; height:100%; position:absolute; background:#FFFFFF; margin-top:0px; margin-left:0px;" align="center">';
theDiv = theDiv + '<iframe src="'+exitsplashpage+'" width="100%" height="100%" align="middle" frameborder="0"></iframe>';
theDiv = theDiv + '</div>';

theBody = document.body;
if (!theBody) {theBody = document.getElementById("body");
if (!theBody) {theBody = document.getElementsByTagName("body")[0]; } }
var PreventExitSplash = false;

function DisplayExitSplash(){
if(PreventExitSplash == false){
window.scrollTo(0,0);
try {
window.alert(exitsplashmessage);
} catch (e) {}
PreventExitSplash=true;
divtag = document.createElement("div");
divtag.setAttribute("id","ExitSplashMainOuterLayer ");
divtag.style.position="absolute";
divtag.style.width="100%";
divtag.style.height="100%";
divtag.style.zIndex="99";
divtag.style.left="0px";
divtag.style.top="0px";
divtag.innerHTML=theDiv;
theBody.innerHTML="";
theBody.topMargin="0px";
theBody.rightMargin="0px";
theBody.bottomMargin="0px";
theBody.leftMargin="0px";
theBody.style.overflow="hidden";
theBody.appendChild(divtag);
return exitsplashmessage;
}
}

var a = document.getElementsByTagName('A');
for (var i = 0; i < a.length; i++) {
if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;});}
}

disablelinksfunc = function(){
var a = document.getElementsByTagName('A');
for (var i = 0; i < a.length; i++) {
if(a[i].target !== '_blank') {addClickEvent(a,i, function(){ PreventExitSplash=true; });} else{addClickEvent(a,i, function(){ PreventExitSplash=false;});}
}
}

hideexitcancelbuttonimage = function(){
document.getElementById('ExitCancelButtonImageDiv' ).style.display='none';
}
addLoadEvent(disablelinksfunc);

disableformsfunc = function(){
var f = document.getElementsByTagName('FORM'); for (var i=0;i<f.length;i++){ if (!f[i].onclick){ f[i].onclick=function(){ PreventExitSplash=true; } }else if (!f[i].onsubmit){ f[i].onsubmit=function(){ PreventExitSplash=true; }
}

addLoadEvent(disableformsfunc);
window.onbeforeunload = DisplayExitSplash;
//]]>
</script>
hermonk9 is offline  
Closed Thread


Bookmarks

Tags
code, exit, pop, problem


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 09:29 AM.