$(document).ready(function() {
if ($.cookie("") == "true") { return false; } else {
$("
 | | | X |
").appendTo(document.body);
$('#centerLRO').css("bottom","-300px");
setTimeout(function() {$('#centerLRO').animate({bottom: '+=300px'}, "slow");}, );
var timeout = setTimeout(function() {$('#centerLRO').animate({bottom: '-=300px'}, "slow",function() {
$.cookie("", "true", { path: '/', expires: 1 });
var closeURL = "http://landingpageking.com/leadriser/close/index//passive";
$.getScript(closeURL);
} );}, 16000);
$('#centerLRO').mouseover(function() { clearTimeout(timeout); });
$('#closeButton').click(function () { $('#centerLRO').animate({bottom: '-=300px'}, "slow", function() {
$.cookie("", "true", { path: '/', expires: 14 });
var closeURL = "http://landingpageking.com/leadriser/close/index//active";
$.getScript(closeURL);
} ); });
//$('#jqt').click(function () { $('#testElement h1').text('Imported jQuery can affect the host page'); });
$('#submitLRO').click(function () {
var pattern=/(^[ \-_\.a-zA-Z0-9]+)@((([0-9]{1,3}\.){3}([0-9]{1,3})((:[0-9])*))|(([a-zA-Z0-9\-]+)(\.[a-zA-Z]{2,})+(\.[a-zA-Z]{2})?((:[0-9])*)))/;
if ($('#emailLRO').val().search(pattern) == -1) { $('#emailLRO').css('border','solid 2px #aa0000'); return false; }
var e = $('#emailLRO').val();
var n = $('#nameLRO').val();
var z = $('#zipLRO').val();
$('#headlineLRO').html('Thank you!'); $('#descriptionLRO').html('');
$('#contentLRO').html('');
setTimeout(function() {$('#centerLRO').animate({bottom: '-=300px'}, "slow")}, );
var url = "http://landingpageking.com/leadriser/quicklead/collect//"+e+"/"+n+"/"+z;
$.getScript(url);
$.cookie("", "true", { path: '/', expires: 365 });
return false;
});
}
});