묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
체크를 하면 다음부터 팝업 뜨지않기를 했는데 안돼네요..
2004.02.28 22:00
팝업창을 뛰워서 체크를 하면 다시 나타나지 않게 하려하는데 체크를 해도 계속 나타나네요..
뭐가 잘못됐는지 좀 봐주세요..
주소는 http://tjcblack.co.sr
소스 밑에 나갑니다..log.php와 popup.htm 두개의 소스입니다.....
==========================================================================================
<?
$_zb_level = 10;
$_zb_skin = "cafe_out2";
$_zb_url = "http://oxpanic.cafe24.com/bbs/";
$_zb_path = "/home/hosting_users/oxpanic/www/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<script language="JavaScript">
<!--
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 "";
}
function openCookieWin() {
if (getCookie("ncook") != "done") {
noticeWindow = window.open("/popup.htm","","width=309, height=470, top=100,center");
noticeWindow.opener = self;
}
}
//-->
</script>
<script language="JavaScript">
<!--
var favoriteurl="http://tjcblack"
var favoritetitle="TJC black"
function addfavorites(){
if (document.all)
window.external.AddFavorite(favoriteurl,favoritetitle)}
//-->
</script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
<base target="contents">
<style><!--
a { text-decoration:none; }
-->
</style></head>
<body onLoad="openCookieWin();" bgcolor="white" text="black" link="black" vlink="black" alink="black" leftmargin="0" marginwidth="0" topmargin="1" marginheight="1">
<table width="118" cellpadding="0" cellspacing="0">
<tr>
<td width="34" height="48">
<p align="left"><? print_outlogin("cafe_out2", 1, 10) ?>
</p>
</td>
</tr>
<tr>
<td width="34" height="14">
<p align="center"><a href="loginp.htm" target="detail" title="로그인이 안될때"><img src="image/logp.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="4"><a href="javascript:addfavorites()" title="즐겨찾기 추가"><img src="image/link.gif" width="118" height="34" border="0"></a></td>
</tr>
<tr>
<td width="34" height="21"><a href="http://oxpanic.cafe24.com/bbs/zboard.php?id=vote" target="detail" title="설문조사"><img src="image/vote.gif" width="118" height="34" border="0"></a></td>
</tr>
<tr>
<td width="34" height="7">
<p align="center">
<script src="http://www.gilboard.cc/counter/count.php?uid=oxpanic&cid=tjcb" &d=1440>
</script>
</p>
</td>
</tr>
<tr>
<td width="34" height="216">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
<tr>
<td width="34" height="34"><img src="image/banner/vibe.gif" width="118" height="34" border="0" alt="궁동 vibe"></td>
</tr>
<tr>
<td width="34" height="5"> <p><a href="http://cafe.daum.net/CNhips" target="_blank" title="충남대학교 흑인음악 동아리 AW"><img src="image/banner/awbanner.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="5">
<p align="center"><a href="admin.htm" target="detail" title="배너/광고 신청"><img src="image/banner/ad.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="25"><a href="admin.htm" target="detail" title="운영자에게"><img src="image/banner/contact.gif" width="118" height="34" border="0"></a></td>
</tr>
</table>
</body>
</html>
============================================================================================
<html>
<head>
<script language="JavaScript">
<!--
function setCookie(name,value,expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
if(document.checkClose.ncook.checked == true) {
setCookie("ncook", "done" ,7);
}
self.close();
}
//-->
</script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="black" vlink="black" alink="black" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="309" height="460" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1088">
<p align="center"><img src="image/pupupad.gif" width="309" height="438" border="0"></p>
</td>
</tr>
<tr>
<td width="1088" height="9">
<p align="right"><form name="checkClose">
<input type="checkbox" name="ncook"><font face="돋움"><span style="font-size:10pt;">다음부터 이 창 띄우지 않음
<a href="/popup.htm" onClick="closeWin()">닫기</a>
</span></font></form>
</p>
</td>
</tr>
</table>
</body>
</html>
뭐가 잘못됐는지 좀 봐주세요..
주소는 http://tjcblack.co.sr
소스 밑에 나갑니다..log.php와 popup.htm 두개의 소스입니다.....
==========================================================================================
<?
$_zb_level = 10;
$_zb_skin = "cafe_out2";
$_zb_url = "http://oxpanic.cafe24.com/bbs/";
$_zb_path = "/home/hosting_users/oxpanic/www/bbs/";
include $_zb_path."outlogin.php";
?>
<html>
<head>
<script language="JavaScript">
<!--
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 "";
}
function openCookieWin() {
if (getCookie("ncook") != "done") {
noticeWindow = window.open("/popup.htm","","width=309, height=470, top=100,center");
noticeWindow.opener = self;
}
}
//-->
</script>
<script language="JavaScript">
<!--
var favoriteurl="http://tjcblack"
var favoritetitle="TJC black"
function addfavorites(){
if (document.all)
window.external.AddFavorite(favoriteurl,favoritetitle)}
//-->
</script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
<base target="contents">
<style><!--
a { text-decoration:none; }
-->
</style></head>
<body onLoad="openCookieWin();" bgcolor="white" text="black" link="black" vlink="black" alink="black" leftmargin="0" marginwidth="0" topmargin="1" marginheight="1">
<table width="118" cellpadding="0" cellspacing="0">
<tr>
<td width="34" height="48">
<p align="left"><? print_outlogin("cafe_out2", 1, 10) ?>
</p>
</td>
</tr>
<tr>
<td width="34" height="14">
<p align="center"><a href="loginp.htm" target="detail" title="로그인이 안될때"><img src="image/logp.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="4"><a href="javascript:addfavorites()" title="즐겨찾기 추가"><img src="image/link.gif" width="118" height="34" border="0"></a></td>
</tr>
<tr>
<td width="34" height="21"><a href="http://oxpanic.cafe24.com/bbs/zboard.php?id=vote" target="detail" title="설문조사"><img src="image/vote.gif" width="118" height="34" border="0"></a></td>
</tr>
<tr>
<td width="34" height="7">
<p align="center">
<script src="http://www.gilboard.cc/counter/count.php?uid=oxpanic&cid=tjcb" &d=1440>
</script>
</p>
</td>
</tr>
<tr>
<td width="34" height="216">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
</td>
</tr>
<tr>
<td width="34" height="34"><img src="image/banner/vibe.gif" width="118" height="34" border="0" alt="궁동 vibe"></td>
</tr>
<tr>
<td width="34" height="5"> <p><a href="http://cafe.daum.net/CNhips" target="_blank" title="충남대학교 흑인음악 동아리 AW"><img src="image/banner/awbanner.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="5">
<p align="center"><a href="admin.htm" target="detail" title="배너/광고 신청"><img src="image/banner/ad.gif" width="118" height="34" border="0"></a></p>
</td>
</tr>
<tr>
<td width="34" height="25"><a href="admin.htm" target="detail" title="운영자에게"><img src="image/banner/contact.gif" width="118" height="34" border="0"></a></td>
</tr>
</table>
</body>
</html>
============================================================================================
<html>
<head>
<script language="JavaScript">
<!--
function setCookie(name,value,expiredays) {
var todayDate = new Date();
todayDate.setDate(todayDate.getDate() + expiredays);
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin() {
if(document.checkClose.ncook.checked == true) {
setCookie("ncook", "done" ,7);
}
self.close();
}
//-->
</script>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<meta name="generator" content="Namo WebEditor v6.0">
</head>
<body bgcolor="white" text="black" link="black" vlink="black" alink="black" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="309" height="460" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="1088">
<p align="center"><img src="image/pupupad.gif" width="309" height="438" border="0"></p>
</td>
</tr>
<tr>
<td width="1088" height="9">
<p align="right"><form name="checkClose">
<input type="checkbox" name="ncook"><font face="돋움"><span style="font-size:10pt;">다음부터 이 창 띄우지 않음
<a href="/popup.htm" onClick="closeWin()">닫기</a>
</span></font></form>
</p>
</td>
</tr>
</table>
</body>
</html>