Leav Notice Plugin - External Link Handler
by bizamajig
HTML
<script src="http://rewdy.com/tools-files/leaveNotice/js/jquery.leaveNotice.min.js"></script>
<a href="http://www.google.com" class="ex6">Example Link</a>
CSS
<link rel="stylesheet" type="text/css" href="http://rewdy.com/tools-files/leaveNotice/css/jquery.leaveNotice.css" />
#custom-blackout {position:fixed; top:0; left:0; width:100%; height:100%; background-color:#514004;}
#custom-messageHolder {position:fixed; top:200px; left:0; width:100%;}
#custom-messageBox {width:400px; margin:0 auto; padding:120px 50px 20px 50px; background:#333 url(img/custom-msg-box-bg.png) no-repeat top center; color:#fff; text-align:center; border:5px solid #F8DA07; -moz-border-radius:15px; -webkit-border-radius:15px;}
#custom-messageBox * {color:#fff;}
#custom-messageBox hr {border-color:#666;}
#custom-messageBox a#ln-cancelLink {background-color:#666; color:#333;}
JavaScript
//Initiation for example 6
$('a.ex6').leaveNotice({
siteName:"LeaveNotice Test Page",
exitMessage:"<h3>Say goodbye to {SITENAME}!</h3><p>Thanks. Shut the door behind you!</p>",
preLinkMessage:"<hr/><p>Have fun at:<br/><strong>{URL}</strong></p><hr/>",
overlayId:"custom-blackout",
messageBoxId:"custom-messageBox",
messageBoxHolder:"custom-messageHolder",
overlayAlpha:0.6
});