==========================
오프너 페이지에 들어갈 코드
open.html
==========================
<HTML>
<HEAD>
<TITLE> Jasko Sample Script </TITLE>
<!---- [1단계] 아래의 소스코드를 <HEAD>와 </HEAD> 사이에 붙여 넣으세요 ---->
<script language="JavaScript">
<!-- 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" )
{
window.open('notice.html','','width=340,height=380'); // 팝업윈도우의 경로와 크기를 설정 하세요
}
// - JavaScript - -->
</script>
<!------------------------- 여기까지 ---------------------------------->
</head>
<body>
<p>이 문서에서는 공지창을 띄워줍니다</p>
</body>
</html>
==========================
공지창 윈도우에 들어갈 코드
notice.html
==========================
<HTML>
<HEAD>
<TITLE> Jasko Sample Script </TITLE>
<!---- [1단계] 아래의 소스코드를 <HEAD>와 </HEAD> 사이에 붙여 넣으세요 ---->
<script language="JavaScript">
<!-- 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();
}
// - JavaScript - -->
</script>
<script language="JavaScript">
<!--
function na_call(str)
{
eval(str);
}
// -->
</script>
<!------------------------- 여기까지 ---------------------------------->
</head>
<body>
<!---- [2단계] 아래의 방법으로 원하는 위치에 복사 해 넣으세요 ------------------>
<form name="form1">
<TABLE align=center width=340 border=0 bgColor=gold>
<TR>
<TD colspan=2 align=center>
<b>공지사항</b>
</TD>
</TR>
<TR bgColor=lightyellow>
<TD colspan=2 align=center>
<img src="../c1.jpg">
</TD>
</TR>
<TR>
<TD>
<p style="font-size:12px">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD>
<input type="image" src="../close.gif" name="close" OnClick="notice_closeWin()">
</TD>
</TR>
</TABLE>
</form>
<!------------------------- 여기까지 ---------------------------------->
<p> </p>
</body>
</html>
<input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
오프너 페이지에 들어갈 코드
open.html
==========================
<HTML>
<HEAD>
<TITLE> Jasko Sample Script </TITLE>
<!---- [1단계] 아래의 소스코드를 <HEAD>와 </HEAD> 사이에 붙여 넣으세요 ---->
<script language="JavaScript">
<!-- 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" )
{
window.open('notice.html','','width=340,height=380'); // 팝업윈도우의 경로와 크기를 설정 하세요
}
// - JavaScript - -->
</script>
<!------------------------- 여기까지 ---------------------------------->
</head>
<body>
<p>이 문서에서는 공지창을 띄워줍니다</p>
</body>
</html>
==========================
공지창 윈도우에 들어갈 코드
notice.html
==========================
<HTML>
<HEAD>
<TITLE> Jasko Sample Script </TITLE>
<!---- [1단계] 아래의 소스코드를 <HEAD>와 </HEAD> 사이에 붙여 넣으세요 ---->
<script language="JavaScript">
<!-- 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();
}
// - JavaScript - -->
</script>
<script language="JavaScript">
<!--
function na_call(str)
{
eval(str);
}
// -->
</script>
<!------------------------- 여기까지 ---------------------------------->
</head>
<body>
<!---- [2단계] 아래의 방법으로 원하는 위치에 복사 해 넣으세요 ------------------>
<form name="form1">
<TABLE align=center width=340 border=0 bgColor=gold>
<TR>
<TD colspan=2 align=center>
<b>공지사항</b>
</TD>
</TR>
<TR bgColor=lightyellow>
<TD colspan=2 align=center>
<img src="../c1.jpg">
</TD>
</TR>
<TR>
<TD>
<p style="font-size:12px">
<input type="checkbox" name="Notice">오늘은 이창을 다시 열지않음
</TD>
<TD>
<input type="image" src="../close.gif" name="close" OnClick="notice_closeWin()">
</TD>
</TR>
</TABLE>
</form>
<!------------------------- 여기까지 ---------------------------------->
<p> </p>
</body>
</html>
<input type=button name=simabuttonviewsource value="View Source" onClick='window.location="view-source:"+window.location.href'><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
댓글 4개
21년 전
감사합니다..
18년 전
이 소스는 잘안되네여...
nohgg
18년 전
잘쓰겠습니다 ^^
웹프로그래머
14년 전
아래와 중복인거 같은데..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 530 |
|
19년 전 | 1222 | |
| 529 |
|
19년 전 | 1401 | |
| 528 |
|
19년 전 | 1968 | |
| 527 |
사랑과우정
|
19년 전 | 2384 | |
| 526 | 19년 전 | 2865 | ||
| 525 |
|
19년 전 | 2289 | |
| 524 |
|
19년 전 | 1787 | |
| 523 | 19년 전 | 7026 | ||
| 522 |
|
19년 전 | 3719 | |
| 521 | 19년 전 | 2323 | ||
| 520 | 19년 전 | 2358 | ||
| 519 | 19년 전 | 2848 | ||
| 518 |
|
19년 전 | 5767 | |
| 517 |
|
19년 전 | 5540 | |
| 516 |
|
19년 전 | 2244 | |
| 515 |
|
19년 전 | 3283 | |
| 514 | 19년 전 | 2854 | ||
| 513 | 19년 전 | 2207 | ||
| 512 |
개발자관리자
|
19년 전 | 2721 | |
| 511 |
개발자관리자
|
19년 전 | 1570 | |
| 510 |
개발자관리자
|
19년 전 | 1731 | |
| 509 |
개발자관리자
|
19년 전 | 1826 | |
| 508 |
개발자관리자
|
19년 전 | 1997 | |
| 507 |
개발자관리자
|
19년 전 | 1679 | |
| 506 |
개발자관리자
|
19년 전 | 1798 | |
| 505 |
개발자관리자
|
19년 전 | 1766 | |
| 504 |
개발자관리자
|
19년 전 | 1841 | |
| 503 |
개발자관리자
|
19년 전 | 1513 | |
| 502 |
개발자관리자
|
19년 전 | 2636 | |
| 501 | 19년 전 | 1980 | ||
| 500 | 19년 전 | 3230 | ||
| 499 | 19년 전 | 3255 | ||
| 498 | 19년 전 | 2511 | ||
| 497 | 19년 전 | 2597 | ||
| 496 | 19년 전 | 2433 | ||
| 495 | 19년 전 | 2693 | ||
| 494 | 19년 전 | 2671 | ||
| 493 | 19년 전 | 3161 | ||
| 492 | 19년 전 | 2867 | ||
| 491 | 19년 전 | 5288 | ||
| 490 |
|
19년 전 | 2112 | |
| 489 |
|
19년 전 | 2197 | |
| 488 |
|
19년 전 | 1998 | |
| 487 |
|
19년 전 | 1932 | |
| 486 |
|
19년 전 | 1931 | |
| 485 |
|
19년 전 | 2125 | |
| 484 |
|
19년 전 | 3195 | |
| 483 |
|
19년 전 | 3074 | |
| 482 |
|
19년 전 | 2837 | |
| 481 |
|
19년 전 | 2534 | |
| 480 |
|
19년 전 | 2619 | |
| 479 |
|
19년 전 | 2289 | |
| 478 |
|
19년 전 | 2320 | |
| 477 |
개발자관리자
|
19년 전 | 1578 | |
| 476 |
개발자관리자
|
19년 전 | 2303 | |
| 475 |
개발자관리자
|
19년 전 | 2651 | |
| 474 |
개발자관리자
|
19년 전 | 2646 | |
| 473 |
개발자관리자
|
19년 전 | 2957 | |
| 472 | 19년 전 | 2728 | ||
| 471 | 19년 전 | 1707 | ||
| 470 | 19년 전 | 1809 | ||
| 469 |
|
19년 전 | 2712 | |
| 468 |
|
19년 전 | 2210 | |
| 467 |
|
19년 전 | 3976 | |
| 466 |
|
19년 전 | 2486 | |
| 465 | 19년 전 | 2366 | ||
| 464 | 19년 전 | 3511 | ||
| 463 |
|
19년 전 | 3090 | |
| 462 |
|
19년 전 | 2233 | |
| 461 |
|
19년 전 | 3027 | |
| 460 |
|
19년 전 | 2231 | |
| 459 |
|
19년 전 | 3086 | |
| 458 |
|
19년 전 | 3509 | |
| 457 |
|
19년 전 | 5199 | |
| 456 |
|
19년 전 | 3121 | |
| 455 |
스마일미디어
|
19년 전 | 3118 | |
| 454 |
스마일미디어
|
19년 전 | 2704 | |
| 453 |
스마일미디어
|
19년 전 | 2448 | |
| 452 |
스마일미디어
|
19년 전 | 2707 | |
| 451 |
스마일미디어
|
19년 전 | 2429 | |
| 450 |
스마일미디어
|
19년 전 | 2550 | |
| 449 |
스마일미디어
|
19년 전 | 2349 | |
| 448 |
스마일미디어
|
19년 전 | 2684 | |
| 447 | 19년 전 | 2954 | ||
| 446 |
스마일미디어
|
19년 전 | 3238 | |
| 445 |
스마일미디어
|
19년 전 | 7039 | |
| 444 |
스마일미디어
|
19년 전 | 5162 | |
| 443 |
스마일미디어
|
19년 전 | 2413 | |
| 442 |
스마일미디어
|
19년 전 | 5145 | |
| 441 |
스마일미디어
|
19년 전 | 3087 | |
| 440 |
|
19년 전 | 2439 | |
| 439 | 19년 전 | 2136 | ||
| 438 | 19년 전 | 3562 | ||
| 437 |
|
19년 전 | 2866 | |
| 436 |
|
19년 전 | 3243 | |
| 435 |
|
19년 전 | 2870 | |
| 434 | 19년 전 | 3374 | ||
| 433 |
sjsjin
|
19년 전 | 2698 | |
| 432 |
sjsjin
|
19년 전 | 3447 | |
| 431 |
sjsjin
|
19년 전 | 2408 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기