팝업창 하루동안 띄우지 않기 소스

//하루동안 띄우지 않는 소스

팝업창 안에 들어갈 소스는 아래와 같습니다..

<html>
<head>
<title></title>
<script language=”JavaScript”>
<!–
function notice_setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + “=” + escape( value ) + “; path=/; expires=” + todayDate.toGMTString() + “;”
}

function notice_closeWin()
{
if ( document.forms[0].Notice.checked )
notice_setCookie( “Notice”, “done” , 1); // 1=하룻동안 공지창 열지 않음
self.close();
}
function na_call(str){ eval(str);}
//–>
</script>
</head>
<body>
<form name=”form1″>
<input type=”checkbox” name=”Notice” OnClick=”notice_closeWin()”>오늘은 이창을 다시 열지않음
</form>

</body>
</html>

—————————————————————————————-

<html>
<head>
<title></title>

<script language=”JavaScript”>
<!–
function notice_getCookie( name ){
var nameOfCookie = name + “=”;
var x = 0;
while ( x <= document.cookie.length )
{
var y = (x+nameOfCookie.length);
if ( document.cookie.substring( x, y ) == nameOfCookie ) {
if ( (endOfCookie=document.cookie.indexOf( “;”, y )) == -1 )
endOfCookie = document.cookie.length;
return unescape( document.cookie.substring( y, endOfCookie ) );
}
x = document.cookie.indexOf( ” “, x ) + 1;
if ( x == 0 )
break;
}
return “”;
}
if ( notice_getCookie( “Notice” ) != “done” )
{

noticeWindow = window.open(‘Pop.html’,’notice’,’left=0, top=0, width=480,height=620′);
noticeWindow.opener = self;

}

// –>
</script>
</head>

<body>
팝업창을 확인하세요

</body>
</html>