[JS] 오늘 하루 그만 보기 레이어(+윈도우창)
1) - CSS a{text-decoration:none; color:white} .pull-right{float:right} .main_popup{width:350px; height:430px; border:3px solid #3E4156;background-color: white;} .popup_bottom{ background-color: #3E4156; color: white; height: 25px; padding: 2px 10px 3px 10px; width:330px; } - JS if(getCookie("notToday")!="Y"){ $("#main_popup").show('fade'); } function closePopupNotToday(){ setCookie('notToday','Y', 1); $("#main_popup").hide('fade'); } function setCookie(name, value, expiredays) { var today = new Date(); today.setDate(today.getDate() + expiredays); document.cookie = name + '=' + escape(value) + '; path=/; expires=' + today.toGMTString() + ';' } function getCookie(name) { var cName = name + "="; var x = 0; while ( x <= document.cookie.length ) { var y = (x+cName.length);