==========================
오프너 페이지에 들어갈 코드
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년 전 | 1235 | |
| 529 |
|
19년 전 | 1417 | |
| 528 |
|
19년 전 | 1978 | |
| 527 |
사랑과우정
|
19년 전 | 2391 | |
| 526 | 19년 전 | 2872 | ||
| 525 |
|
19년 전 | 2299 | |
| 524 |
|
19년 전 | 1805 | |
| 523 | 19년 전 | 7043 | ||
| 522 |
|
19년 전 | 3729 | |
| 521 | 19년 전 | 2341 | ||
| 520 | 19년 전 | 2378 | ||
| 519 | 19년 전 | 2874 | ||
| 518 |
|
19년 전 | 5784 | |
| 517 |
|
19년 전 | 5560 | |
| 516 |
|
19년 전 | 2263 | |
| 515 |
|
19년 전 | 3304 | |
| 514 | 19년 전 | 2867 | ||
| 513 | 19년 전 | 2221 | ||
| 512 |
개발자관리자
|
19년 전 | 2730 | |
| 511 |
개발자관리자
|
19년 전 | 1587 | |
| 510 |
개발자관리자
|
19년 전 | 1741 | |
| 509 |
개발자관리자
|
19년 전 | 1850 | |
| 508 |
개발자관리자
|
19년 전 | 2010 | |
| 507 |
개발자관리자
|
19년 전 | 1688 | |
| 506 |
개발자관리자
|
19년 전 | 1810 | |
| 505 |
개발자관리자
|
19년 전 | 1776 | |
| 504 |
개발자관리자
|
19년 전 | 1859 | |
| 503 |
개발자관리자
|
19년 전 | 1523 | |
| 502 |
개발자관리자
|
19년 전 | 2653 | |
| 501 | 19년 전 | 2001 | ||
| 500 | 19년 전 | 3240 | ||
| 499 | 19년 전 | 3273 | ||
| 498 | 19년 전 | 2529 | ||
| 497 | 19년 전 | 2602 | ||
| 496 | 19년 전 | 2445 | ||
| 495 | 19년 전 | 2700 | ||
| 494 | 19년 전 | 2681 | ||
| 493 | 19년 전 | 3183 | ||
| 492 | 19년 전 | 2897 | ||
| 491 | 19년 전 | 5312 | ||
| 490 |
|
19년 전 | 2127 | |
| 489 |
|
19년 전 | 2213 | |
| 488 |
|
19년 전 | 2010 | |
| 487 |
|
19년 전 | 1947 | |
| 486 |
|
19년 전 | 1941 | |
| 485 |
|
19년 전 | 2145 | |
| 484 |
|
19년 전 | 3217 | |
| 483 |
|
19년 전 | 3099 | |
| 482 |
|
19년 전 | 2855 | |
| 481 |
|
19년 전 | 2550 | |
| 480 |
|
19년 전 | 2636 | |
| 479 |
|
19년 전 | 2298 | |
| 478 |
|
19년 전 | 2329 | |
| 477 |
개발자관리자
|
19년 전 | 1596 | |
| 476 |
개발자관리자
|
19년 전 | 2311 | |
| 475 |
개발자관리자
|
19년 전 | 2662 | |
| 474 |
개발자관리자
|
19년 전 | 2661 | |
| 473 |
개발자관리자
|
19년 전 | 2969 | |
| 472 | 19년 전 | 2739 | ||
| 471 | 19년 전 | 1735 | ||
| 470 | 19년 전 | 1831 | ||
| 469 |
|
19년 전 | 2732 | |
| 468 |
|
19년 전 | 2224 | |
| 467 |
|
19년 전 | 3998 | |
| 466 |
|
19년 전 | 2513 | |
| 465 | 19년 전 | 2381 | ||
| 464 | 19년 전 | 3529 | ||
| 463 |
|
19년 전 | 3103 | |
| 462 |
|
19년 전 | 2243 | |
| 461 |
|
19년 전 | 3038 | |
| 460 |
|
19년 전 | 2243 | |
| 459 |
|
19년 전 | 3109 | |
| 458 |
|
19년 전 | 3535 | |
| 457 |
|
19년 전 | 5219 | |
| 456 |
|
19년 전 | 3136 | |
| 455 |
스마일미디어
|
19년 전 | 3132 | |
| 454 |
스마일미디어
|
19년 전 | 2725 | |
| 453 |
스마일미디어
|
19년 전 | 2469 | |
| 452 |
스마일미디어
|
19년 전 | 2723 | |
| 451 |
스마일미디어
|
19년 전 | 2450 | |
| 450 |
스마일미디어
|
19년 전 | 2571 | |
| 449 |
스마일미디어
|
19년 전 | 2366 | |
| 448 |
스마일미디어
|
19년 전 | 2693 | |
| 447 | 19년 전 | 2960 | ||
| 446 |
스마일미디어
|
19년 전 | 3245 | |
| 445 |
스마일미디어
|
19년 전 | 7048 | |
| 444 |
스마일미디어
|
19년 전 | 5170 | |
| 443 |
스마일미디어
|
19년 전 | 2429 | |
| 442 |
스마일미디어
|
19년 전 | 5166 | |
| 441 |
스마일미디어
|
19년 전 | 3108 | |
| 440 |
|
19년 전 | 2467 | |
| 439 | 19년 전 | 2161 | ||
| 438 | 19년 전 | 3569 | ||
| 437 |
|
19년 전 | 2872 | |
| 436 |
|
19년 전 | 3250 | |
| 435 |
|
19년 전 | 2893 | |
| 434 | 19년 전 | 3385 | ||
| 433 |
sjsjin
|
19년 전 | 2712 | |
| 432 |
sjsjin
|
19년 전 | 3456 | |
| 431 |
sjsjin
|
19년 전 | 2417 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기