팝업창 다시 안뜨게 하기
-----매인----
<script>
function popup(goPageURL,goPageName,goPageWidth,goPageHeight)
{
window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',menubar=no, scrollbars=no, resizable=no');
}
function expire() {
document.cookie = "user=;domain=ijym.net;path=/";
document.cookie = "chatuser=;domain=ijym.net;path=/";
document.cookie = "globalc=;domain=ijym.net;path=/";
document.cookie = "returnurl=;domain=ijym.net;path=/";
document.cookie = "chatreload=;domain=ijym.net;path=/";
var getCookie = document.cookie;
if ( getCookie.indexOf("NOPOPnew") < 0 ) {
popup('testpop.htm','notice','332','451'); //이부분이 님이 띄울 창의 파일 이름과 창이름 가로 세로 크기에요 알맞게 고쳐주세요
}
}
</script>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="White" onload="expire();">
----------팝업창----
<script language=JavaScript>
<!--
function cookieSet(dayNum)
{
var cookieFlag, oDate, expiresDate;
cookieFlag = "NOPOPnew";
oDate = new Date();
oDate.setDate(oDate.getDate() + dayNum);
expiresDate = oDate.toGMTString();
//쿠키셋팅
if ( document.all.popupCheck.checked == 1 ) {
document.cookie = "popnew=" + cookieFlag + "; expires=" + expiresDate + "; path=/; domain=ijym.net";
} else {
document.cookie = "popnew=" + "" + "; expires=" + expiresDate + "; path=/; domain=ijym.net";
}
//alert(document.cookie);
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table cellspacing="0" cellpadding="0" border="0" width="332" height="441">
<tr>
<td valign="bottom" align="center">
<input type=checkbox name=popupCheck onclick="cookieSet(15);"><!-- cookieSet(원하는 기억일수) 15는 15일동운 쿠키를 저장하고 팝업창을 다시 띄우지 않는것임 알맞게 고쳐주세요--!>
앞으로 창 표시하지 않음 !
<input type="button" onclick=".javascript{window.close()}" value="창닫기" class="button"></td>
</tr>
</table><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
<script>
function popup(goPageURL,goPageName,goPageWidth,goPageHeight)
{
window.open(goPageURL,goPageName,'width='+goPageWidth+',height='+goPageHeight+',menubar=no, scrollbars=no, resizable=no');
}
function expire() {
document.cookie = "user=;domain=ijym.net;path=/";
document.cookie = "chatuser=;domain=ijym.net;path=/";
document.cookie = "globalc=;domain=ijym.net;path=/";
document.cookie = "returnurl=;domain=ijym.net;path=/";
document.cookie = "chatreload=;domain=ijym.net;path=/";
var getCookie = document.cookie;
if ( getCookie.indexOf("NOPOPnew") < 0 ) {
popup('testpop.htm','notice','332','451'); //이부분이 님이 띄울 창의 파일 이름과 창이름 가로 세로 크기에요 알맞게 고쳐주세요
}
}
</script>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" bgcolor="White" onload="expire();">
----------팝업창----
<script language=JavaScript>
<!--
function cookieSet(dayNum)
{
var cookieFlag, oDate, expiresDate;
cookieFlag = "NOPOPnew";
oDate = new Date();
oDate.setDate(oDate.getDate() + dayNum);
expiresDate = oDate.toGMTString();
//쿠키셋팅
if ( document.all.popupCheck.checked == 1 ) {
document.cookie = "popnew=" + cookieFlag + "; expires=" + expiresDate + "; path=/; domain=ijym.net";
} else {
document.cookie = "popnew=" + "" + "; expires=" + expiresDate + "; path=/; domain=ijym.net";
}
//alert(document.cookie);
}
//-->
</script>
</head>
<body topmargin="0" leftmargin="0" marginheight="0" marginwidth="0">
<table cellspacing="0" cellpadding="0" border="0" width="332" height="441">
<tr>
<td valign="bottom" align="center">
<input type=checkbox name=popupCheck onclick="cookieSet(15);"><!-- cookieSet(원하는 기억일수) 15는 15일동운 쿠키를 저장하고 팝업창을 다시 띄우지 않는것임 알맞게 고쳐주세요--!>
앞으로 창 표시하지 않음 !
<input type="button" onclick=".javascript{window.close()}" value="창닫기" class="button"></td>
</tr>
</table><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
게시판 목록
개발자팁
개발과 관련된 유용한 정보를 공유하세요.
질문은 QA에서 해주시기 바랍니다.
질문은 QA에서 해주시기 바랍니다.
| 번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|---|
| 416 | 기타 |
개발자관리자
|
19년 전 | 3891 | |
| 415 | 기타 |
개발자관리자
|
19년 전 | 4892 | |
| 414 | Flash |
|
19년 전 | 4428 | |
| 413 | Flash |
|
19년 전 | 3473 | |
| 412 | Flash |
|
19년 전 | 6624 | |
| 411 | Flash |
|
19년 전 | 4097 | |
| 410 | JavaScript | 19년 전 | 3865 | ||
| 409 | Flash |
|
19년 전 | 4654 | |
| 408 | Flash |
|
19년 전 | 3992 | |
| 407 | Flash |
|
19년 전 | 5319 | |
| 406 | Flash |
|
19년 전 | 3380 | |
| 405 | Flash |
|
19년 전 | 5550 | |
| 404 | Flash |
|
19년 전 | 5358 | |
| 403 | Flash |
|
19년 전 | 7354 | |
| 402 | Flash |
|
19년 전 | 5130 | |
| 401 | 기타 |
스마일미디어
|
19년 전 | 4409 | |
| 400 | JavaScript |
스마일미디어
|
19년 전 | 4273 | |
| 399 | JavaScript |
스마일미디어
|
19년 전 | 3511 | |
| 398 | 기타 |
스마일미디어
|
19년 전 | 3557 | |
| 397 | 기타 |
스마일미디어
|
19년 전 | 3985 | |
| 396 | MySQL | 19년 전 | 4732 | ||
| 395 | JavaScript |
|
19년 전 | 4037 | |
| 394 | Flash |
|
19년 전 | 4106 | |
| 393 | 정규표현식 |
sjsjin
|
19년 전 | 4166 | |
| 392 | JavaScript |
sjsjin
|
19년 전 | 5806 | |
| 391 | 기타 |
sjsjin
|
19년 전 | 3877 | |
| 390 | Flash | 19년 전 | 5351 | ||
| 389 | 기타 | 19년 전 | 5123 | ||
| 388 | JavaScript | 19년 전 | 5618 | ||
| 387 | 기타 | 19년 전 | 4446 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기