==========================
오프너 페이지에 들어갈 코드
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년 전 | 1228 | |
| 529 |
|
19년 전 | 1411 | |
| 528 |
|
19년 전 | 1977 | |
| 527 |
사랑과우정
|
19년 전 | 2387 | |
| 526 | 19년 전 | 2869 | ||
| 525 |
|
19년 전 | 2291 | |
| 524 |
|
19년 전 | 1796 | |
| 523 | 19년 전 | 7035 | ||
| 522 |
|
19년 전 | 3726 | |
| 521 | 19년 전 | 2334 | ||
| 520 | 19년 전 | 2370 | ||
| 519 | 19년 전 | 2864 | ||
| 518 |
|
19년 전 | 5777 | |
| 517 |
|
19년 전 | 5550 | |
| 516 |
|
19년 전 | 2257 | |
| 515 |
|
19년 전 | 3291 | |
| 514 | 19년 전 | 2862 | ||
| 513 | 19년 전 | 2215 | ||
| 512 |
개발자관리자
|
19년 전 | 2727 | |
| 511 |
개발자관리자
|
19년 전 | 1581 | |
| 510 |
개발자관리자
|
19년 전 | 1738 | |
| 509 |
개발자관리자
|
19년 전 | 1835 | |
| 508 |
개발자관리자
|
19년 전 | 2005 | |
| 507 |
개발자관리자
|
19년 전 | 1683 | |
| 506 |
개발자관리자
|
19년 전 | 1804 | |
| 505 |
개발자관리자
|
19년 전 | 1771 | |
| 504 |
개발자관리자
|
19년 전 | 1850 | |
| 503 |
개발자관리자
|
19년 전 | 1521 | |
| 502 |
개발자관리자
|
19년 전 | 2647 | |
| 501 | 19년 전 | 1989 | ||
| 500 | 19년 전 | 3235 | ||
| 499 | 19년 전 | 3262 | ||
| 498 | 19년 전 | 2521 | ||
| 497 | 19년 전 | 2600 | ||
| 496 | 19년 전 | 2439 | ||
| 495 | 19년 전 | 2697 | ||
| 494 | 19년 전 | 2676 | ||
| 493 | 19년 전 | 3174 | ||
| 492 | 19년 전 | 2885 | ||
| 491 | 19년 전 | 5300 | ||
| 490 |
|
19년 전 | 2121 | |
| 489 |
|
19년 전 | 2209 | |
| 488 |
|
19년 전 | 2006 | |
| 487 |
|
19년 전 | 1941 | |
| 486 |
|
19년 전 | 1936 | |
| 485 |
|
19년 전 | 2135 | |
| 484 |
|
19년 전 | 3208 | |
| 483 |
|
19년 전 | 3088 | |
| 482 |
|
19년 전 | 2850 | |
| 481 |
|
19년 전 | 2541 | |
| 480 |
|
19년 전 | 2627 | |
| 479 |
|
19년 전 | 2294 | |
| 478 |
|
19년 전 | 2325 | |
| 477 |
개발자관리자
|
19년 전 | 1585 | |
| 476 |
개발자관리자
|
19년 전 | 2308 | |
| 475 |
개발자관리자
|
19년 전 | 2656 | |
| 474 |
개발자관리자
|
19년 전 | 2653 | |
| 473 |
개발자관리자
|
19년 전 | 2966 | |
| 472 | 19년 전 | 2730 | ||
| 471 | 19년 전 | 1723 | ||
| 470 | 19년 전 | 1825 | ||
| 469 |
|
19년 전 | 2723 | |
| 468 |
|
19년 전 | 2218 | |
| 467 |
|
19년 전 | 3992 | |
| 466 |
|
19년 전 | 2505 | |
| 465 | 19년 전 | 2374 | ||
| 464 | 19년 전 | 3522 | ||
| 463 |
|
19년 전 | 3098 | |
| 462 |
|
19년 전 | 2238 | |
| 461 |
|
19년 전 | 3031 | |
| 460 |
|
19년 전 | 2239 | |
| 459 |
|
19년 전 | 3094 | |
| 458 |
|
19년 전 | 3523 | |
| 457 |
|
19년 전 | 5210 | |
| 456 |
|
19년 전 | 3130 | |
| 455 |
스마일미디어
|
19년 전 | 3126 | |
| 454 |
스마일미디어
|
19년 전 | 2717 | |
| 453 |
스마일미디어
|
19년 전 | 2459 | |
| 452 |
스마일미디어
|
19년 전 | 2716 | |
| 451 |
스마일미디어
|
19년 전 | 2441 | |
| 450 |
스마일미디어
|
19년 전 | 2557 | |
| 449 |
스마일미디어
|
19년 전 | 2362 | |
| 448 |
스마일미디어
|
19년 전 | 2690 | |
| 447 | 19년 전 | 2959 | ||
| 446 |
스마일미디어
|
19년 전 | 3241 | |
| 445 |
스마일미디어
|
19년 전 | 7048 | |
| 444 |
스마일미디어
|
19년 전 | 5166 | |
| 443 |
스마일미디어
|
19년 전 | 2423 | |
| 442 |
스마일미디어
|
19년 전 | 5156 | |
| 441 |
스마일미디어
|
19년 전 | 3098 | |
| 440 |
|
19년 전 | 2454 | |
| 439 | 19년 전 | 2151 | ||
| 438 | 19년 전 | 3564 | ||
| 437 |
|
19년 전 | 2869 | |
| 436 |
|
19년 전 | 3247 | |
| 435 |
|
19년 전 | 2883 | |
| 434 | 19년 전 | 3380 | ||
| 433 |
sjsjin
|
19년 전 | 2709 | |
| 432 |
sjsjin
|
19년 전 | 3453 | |
| 431 |
sjsjin
|
19년 전 | 2415 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기