$(document).ready(function () { if(getCookie('pop-up-closed') != null) return; $('body').append('
\
\
\ \
'); $('.pop-up-close').click(function () { $('.pop-up-overlay').fadeOut().remove(); $('.pop-up-content').fadeOut().remove(); setCookie('pop-up-closed', '1', 7) ; }); }); function setCookie(name, value, days) { var d = new Date; d.setTime(d.getTime() + 24*60*60*1000*days); document.cookie = name + "=" + value + ";path=/;expires=" + d.toGMTString(); } function getCookie(name) { var v = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); return v ? v[2] : null; }

UNSERE EMPFEHLUNGEN