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").fadeOut(0);
    }

REFERENCE

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