HTML

<div id="popup" style="display: none;">
    <a href="javascript:closePopup();">닫기</a>
    <a href="javascript:closePopupToday()">오늘하루닫기</a>
</div>

<!--javascript-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<script src="cookie.js"></script>

JAVASCRIPT

function closePopup(){
    $("#popup").fadeOut(0);
}
function closePopupToday(){                 
    setCookie('todayClose','Y', 1);
    $("#popup").fadeOut(0);
}
if(getCookie("todayClose")!="Y"){
    $("#popup").fadeIn(0);
}

REFERENCE

  1. 'cookie.js' 다운로드 링크

  2. 내용 설명

    • '닫기' 누르면 팝업창 사라지고, '오늘하루닫기'누르면 1일간 보이지 않음