팝업창 url 주소 어떻게 없앨수있나요..?
본문
팝업 소스입니다..
<html>
<head>
<title> </title>
<SCRIPT language="JavaScript">
<!--
function setCookie(name,value,expiredays) //쿠키를 사용자에게 전달할 함수만들기
//setCookie(쿠키이름,쿠키값,쿠키만료시간)
{
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
//페이지 이동
function goURL(url){
opener.location.href=url;
}
//
function closeWin()
{
if (cookie_form.chk.checked) //체크박스에 체크되 있다면(폼 이름,체크박스 이름을 맞춰주세요.)
setCookie("no_pop","ok",1); //쿠키이름은 no_pop,쿠키값은 ok,쿠키만료 기간은 1 일로 쿠키생성
//혹시 no_pop 이라는 이름의 쿠키를 이미 사용하고 있다면 이름을 바꿔주세요
self.close(); //창 닫기
}
// -->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.style2 {font-size: 12px}
-->
</style></head>
<!--<body onUnLoad = "closeWin();"><!-- 브라우저 모서리의 x 클릭으로 닫았을때도 처리하고 싶다면 <body onUnLoad = "closeWin();"> -->
<table border="0" cellpadding="0" cellspacing="0"><tr><td>
<a href="javascript:goURL('http://killyou1874.cafe24.com/');"><img src="../images/nation/sewol.jpg" style="width: 442px;"></td></tr></a>
<tr><td><form name = "cookie_form">
<input type = "checkbox" name = "chk"><span class="style2">오늘은 이창 열지 않기</span>
<input type = "button" value = "close" onClick = "closeWin();"></form> </td></tr>
</table>
</body>
</html>
답변을 작성하시기 전에 로그인 해주세요.