I have a popup that is in the lower right corner and came together to scroll the page down, however to close the popup or by clicking on the popup, I wish the browser remembers the User click action and did not show more popup at least to the same exit the browser, through cookies, please someone help me? see my code below:
<style>
.popup-lateral{
width:302px;
height:0;
z-index:999;
position:fixed;
bottom:0;
right:60px;
background:transparent url('popup-bl-pro.png') no-repeat top center;
}
.popup-lateral .link{
width:293px;
height:192px;
position:absolute;
top:8px;
left:0;
z-index:1;
}
.popup-lateral .fechar{
width:30px;
height:30px;
position:absolute;
top:2px;
right:0;
z-index:2;
}
</style>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.3.1/jquery.cookie.min.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>
$(document).ready(function(){
$("#fechar-popup").click(function(){
$("#popup-lateral").hide();
});
});
</script>
<div style="height:2000px;background:#EEE">teste
</div>
<div id="popup-lateral">
<div class="popup-lateral" style="height: 203px;">
<a class="fechar" id="fechar-popup" href="javascript:void(0);" title="Fechar"></a>
<a class="link" href="/bl/bl.html"></a>
</div>
</div>