<div id=right><span id="close-right"></span>
Тут контент
</div>
<script type="text/javascript">
function setcookie(a,b,c) {if(c){var d = new Date();d.setTime(d.getTime()+c);}if(a && b) document.cookie = a+'='+b+(c ? '; expires='+d.toUTCString() : '');else return false;}
function getcookie(a) {var b = new RegExp(a+'=([^;]){1,}');var c = b.exec(document.cookie);if(c) c = c[0].split('=');else return false;return c[1] ? c[1] : false;}
if(getcookie('close-right'))jQuery('#right').hide();
jQuery('#close-right').click(function(){
setcookie('close-right',true,4*60*60*1000) //Кук на 4 часа
jQuery('#right').fadeOut(1300);
});
</script>
<style type="text/css">
#right {
border:3px solid #00ACFF;
width: 160px;
height:140px;
right:10px;
border-radius:10px;
position:fixed;
top:30%;
z-index:2000;
background: #202226;
}
#close-right {
display:inline-block;
float:right;
margin:4px;
cursor:pointer;
position:relative;
width:19px;
height:19px;
background: url(http://s1.uploads.ru/i/dAjpq.png);
}
</style>