팝업 2개 하루열지않기가 안되고 있어요.. 도와주실분...ㅜㅜ 정보
팝업 2개 하루열지않기가 안되고 있어요.. 도와주실분...ㅜㅜ첨부파일
본문
고수분들 좀 도와주세요....
팝업창 각각의 버튼으로 오늘 하루 창열지 않기가 안되고 있는데 알려 주실분.. ㅜㅜ
/popup/popup_cookie.js 파일첨부했습니다...
---------------------------------------------------------------------------------------------------------
index 페이지부분
<!-- 팝업 스크립트 시작-->
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function 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 ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('/popup/20110914.php','notice','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=478,top=0,left=0');
noticeWindow.opener = self;
}
if ( getCookie( "Notice2" ) != "done" )
{
noticeWindow = window.open('/popup/20110919.php','notice2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=517,height=715,top=0,left=430');
notice2Window.opener = self;
}
// -->
<!-- 팝업 스크립트 끝-->
</SCRIPT>
---------------------------------------------------------------------------------------------------------
팝업 1
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>blutouch event!</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.txt_close {font-family:맑은 고딕; font-size:12px; color:#333333; padding-right: 10px; background-color:#ecd0c2;}
-->
</style>
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<script language="javascript">
<!--
function goEvent(){
opener.location.href = "http://www.11111111.net/bbs/board.php?bo_table=event_201109";
self.close();
}
//-->
</script>
</head>
<body>
<table width="0" border="0" cellspacing="0" cellpadding="0">
<form name="form" method="get">
<tr>
<td align="right" class="txt_close" height="24"><input type="checkbox" name="pop" onClick="closeWin('c20100511',form.pop.checked);"> 오늘 하루 창 열지 않기</td>
</tr>
</form>
<tr>
<td><img src="img/201109_pop.gif" width="400" height="452" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="152,387,240,424" href="javascript_:goEvent();" target="_top" alt="자세히 보기" />
</map></td>
</tr>
</table>
</body>
</html>
------------------------------------------------------------------------------------------------------
팝업2
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>blutouch event!</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.txt_close {font-family:맑은 고딕; font-size:12px; color:#333333; padding-right: 10px; background-color:#ecd0c2;}
-->
</style>
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<script language="javascript">
<!--
function goEvent(){
opener.location.href = "http://www.2222222.net/bbs/board.php?bo_table=event2_201109";
self.close();
}
//-->
</script>
</head>
<body>
<table width="0" border="0" cellspacing="0" cellpadding="0">
<form name="form" method="get">
<tr>
<td align="right" class="txt_close" height="24"><input type="checkbox" name="pop" onClick="closeWin('c20100511',form.pop.checked);"> 오늘 하루 창 열지 않기</td>
</tr>
</form>
<tr>
<td><img src="img/201109_pop2.gif" width="500" height="688" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="10,10,485,676" href="javascript_:goEvent();" target="_top" alt="자세히 보기" />
</map></td>
</tr>
</table>
</body>
</html>
팝업창 각각의 버튼으로 오늘 하루 창열지 않기가 안되고 있는데 알려 주실분.. ㅜㅜ
/popup/popup_cookie.js 파일첨부했습니다...
---------------------------------------------------------------------------------------------------------
index 페이지부분
<!-- 팝업 스크립트 시작-->
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<SCRIPT LANGUAGE="JavaScript">
<!--
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function 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 ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('/popup/20110914.php','notice','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=420,height=478,top=0,left=0');
noticeWindow.opener = self;
}
if ( getCookie( "Notice2" ) != "done" )
{
noticeWindow = window.open('/popup/20110919.php','notice2','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=517,height=715,top=0,left=430');
notice2Window.opener = self;
}
// -->
<!-- 팝업 스크립트 끝-->
</SCRIPT>
---------------------------------------------------------------------------------------------------------
팝업 1
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>blutouch event!</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.txt_close {font-family:맑은 고딕; font-size:12px; color:#333333; padding-right: 10px; background-color:#ecd0c2;}
-->
</style>
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<script language="javascript">
<!--
function goEvent(){
opener.location.href = "http://www.11111111.net/bbs/board.php?bo_table=event_201109";
self.close();
}
//-->
</script>
</head>
<body>
<table width="0" border="0" cellspacing="0" cellpadding="0">
<form name="form" method="get">
<tr>
<td align="right" class="txt_close" height="24"><input type="checkbox" name="pop" onClick="closeWin('c20100511',form.pop.checked);"> 오늘 하루 창 열지 않기</td>
</tr>
</form>
<tr>
<td><img src="img/201109_pop.gif" width="400" height="452" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="152,387,240,424" href="javascript_:goEvent();" target="_top" alt="자세히 보기" />
</map></td>
</tr>
</table>
</body>
</html>
------------------------------------------------------------------------------------------------------
팝업2
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>blutouch event!</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
.txt_close {font-family:맑은 고딕; font-size:12px; color:#333333; padding-right: 10px; background-color:#ecd0c2;}
-->
</style>
<script language="JavaScript" src="/popup/popup_cookie.js"></script>
<script language="javascript">
<!--
function goEvent(){
opener.location.href = "http://www.2222222.net/bbs/board.php?bo_table=event2_201109";
self.close();
}
//-->
</script>
</head>
<body>
<table width="0" border="0" cellspacing="0" cellpadding="0">
<form name="form" method="get">
<tr>
<td align="right" class="txt_close" height="24"><input type="checkbox" name="pop" onClick="closeWin('c20100511',form.pop.checked);"> 오늘 하루 창 열지 않기</td>
</tr>
</form>
<tr>
<td><img src="img/201109_pop2.gif" width="500" height="688" border="0" usemap="#Map" />
<map name="Map" id="Map">
<area shape="rect" coords="10,10,485,676" href="javascript_:goEvent();" target="_top" alt="자세히 보기" />
</map></td>
</tr>
</table>
</body>
</html>
댓글 전체
/popup/popup_cookie.js 의 내용도 공개하셔야지 알 수 있을듯. 위 소스상에서는 크게 문제가 될게 없는듯한데요.
/popup/popup_cookie.js 파일첨부하였습니다 ,.. 관심가져주셔서 감사합니다