Fix Exit Popup, Wordpress site, only working in Firefox
$30-250 USD
Completed
Posted almost 14 years ago
$30-250 USD
Paid on delivery
We just had a exit pop up installed on our website on a few pages, it's only working in Firefox.
The guy who installed it doesn't seem to be able to fix it. Please help!!! Please don't try to do this unless you are an expert on this. Our website is high traffic and we lose a lot of money if this is scewed up.
-----------------------------------------------------------------------------------------------
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/[login to view URL]"></script>
<?php if(is_page(3258) || is_page(1407)){ ?>
<script type="text/javascript">
redir_loc = '';
clicked = false;
var AlertBox = "*****************************************************\n\n IF YOU CLICK CANCEL WE'LL REPLACE THE FORM WITH TODAY'S RATES FROM LENDERS IN YOUR AREA, IF YOU DON'T SEE THEM ALREADY, THEY WILL APPEAR IMMEDIATELY WHEN YOU CLICK CANCEL.\n\n AGAIN IT'S CANCEL FOR TODAY'S LOWEST RATES FROM LENDERS IN YOUR AREA AND OK TO CONTINUE EXITING [login to view URL]\n\n*****************************************************";
//eraseCookie( 'fall-out-seen' );
$(document).ready(
function()
{
$("a").mousedown(function (){ clicked = true; });
$("input").mousedown(function (){ clicked = true; });
$("button").mousedown(function (){ clicked = true; });
$('iframe').contents().find('#sg_SubmitButton').mousedown(function (){ clicked = true; });
[login to view URL] = function (e)
{
if (!clicked && redir_loc=='' )
{
redir_loc = '[login to view URL]';
[login to view URL] = redir_loc;
redir_loc ='';
return AlertBox;
}
}
//interval=[login to view URL]('is_reload()',100);
}
);
function is_reload()
{
//alert("Hello");
if (redir_loc!='')
{
[login to view URL] = redir_loc;
[login to view URL]( interval );
}
}
</script>
<?php } ?>
Internet explorer and Firefox react differently to javcript so a clause needs to be added if the useres browser is internet explorer. I will ge this up and running today.