팝업창에서 오늘 하루 이 페이지 열지 않기 체크박스 사용입니다.
==========================
오프너 페이지에 들어갈 코드
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'>
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 396 | ||
| 7829 |
|
9년 전 | 577 | |
| 7828 | 9년 전 | 508 | ||
| 7827 | 9년 전 | 401 | ||
| 7826 | 9년 전 | 408 | ||
| 7825 | 9년 전 | 454 | ||
| 7824 | 9년 전 | 433 | ||
| 7823 | 9년 전 | 346 | ||
| 7822 | 10년 전 | 336 | ||
| 7821 | 10년 전 | 290 | ||
| 7820 | 10년 전 | 334 | ||
| 7819 |
|
10년 전 | 737 | |
| 7818 | 10년 전 | 366 | ||
| 7817 | 10년 전 | 489 | ||
| 7816 | 10년 전 | 387 | ||
| 7815 | 10년 전 | 589 | ||
| 7814 | 10년 전 | 414 | ||
| 7813 | 10년 전 | 355 | ||
| 7812 | 10년 전 | 375 | ||
| 7811 | 10년 전 | 380 | ||
| 7810 | 10년 전 | 537 | ||
| 7809 | 10년 전 | 464 | ||
| 7808 | 10년 전 | 344 | ||
| 7807 | 10년 전 | 386 | ||
| 7806 |
프로그래머7
|
10년 전 | 1316 | |
| 7805 | 10년 전 | 1253 | ||
| 7804 |
zahir1312
|
10년 전 | 761 | |
| 7803 |
|
10년 전 | 1354 | |
| 7802 | 10년 전 | 445 | ||
| 7801 | 10년 전 | 847 | ||
| 7800 | 10년 전 | 1072 | ||
| 7799 | 10년 전 | 528 | ||
| 7798 | 10년 전 | 485 | ||
| 7797 | 10년 전 | 486 | ||
| 7796 | 10년 전 | 326 | ||
| 7795 | 10년 전 | 480 | ||
| 7794 | 10년 전 | 518 | ||
| 7793 | 10년 전 | 1025 | ||
| 7792 | 10년 전 | 436 | ||
| 7791 | 10년 전 | 525 | ||
| 7790 | 10년 전 | 483 | ||
| 7789 |
fbastore
|
10년 전 | 1422 | |
| 7788 | 10년 전 | 519 | ||
| 7787 | 10년 전 | 377 | ||
| 7786 | 10년 전 | 547 | ||
| 7785 | 10년 전 | 553 | ||
| 7784 | 10년 전 | 613 | ||
| 7783 | 10년 전 | 422 | ||
| 7782 | 10년 전 | 467 | ||
| 7781 | 10년 전 | 878 | ||
| 7780 | 10년 전 | 798 | ||
| 7779 | 10년 전 | 765 | ||
| 7778 | 10년 전 | 344 | ||
| 7777 | 10년 전 | 432 | ||
| 7776 | 10년 전 | 438 | ||
| 7775 | 10년 전 | 377 | ||
| 7774 | 10년 전 | 618 | ||
| 7773 | 10년 전 | 365 | ||
| 7772 | 10년 전 | 709 | ||
| 7771 | 10년 전 | 357 | ||
| 7770 | 10년 전 | 631 | ||
| 7769 | 10년 전 | 356 | ||
| 7768 | 10년 전 | 581 | ||
| 7767 | 10년 전 | 1148 | ||
| 7766 | 10년 전 | 473 | ||
| 7765 | 10년 전 | 499 | ||
| 7764 |
잘살아보자
|
10년 전 | 357 | |
| 7763 |
|
10년 전 | 1428 | |
| 7762 |
Tosea
|
10년 전 | 1038 | |
| 7761 | 10년 전 | 622 | ||
| 7760 |
잘살아보자
|
10년 전 | 657 | |
| 7759 |
잘살아보자
|
10년 전 | 477 | |
| 7758 |
잘살아보자
|
10년 전 | 567 | |
| 7757 | 10년 전 | 1218 | ||
| 7756 |
ITBANK
|
10년 전 | 1240 | |
| 7755 | 10년 전 | 1915 | ||
| 7754 | 10년 전 | 1036 | ||
| 7753 | 10년 전 | 858 | ||
| 7752 | 10년 전 | 1369 | ||
| 7751 |
잘살아보자
|
10년 전 | 501 | |
| 7750 |
잘살아보자
|
10년 전 | 461 | |
| 7749 |
잘살아보자
|
10년 전 | 464 | |
| 7748 |
잘살아보자
|
10년 전 | 452 | |
| 7747 |
잘살아보자
|
10년 전 | 551 | |
| 7746 |
잘살아보자
|
10년 전 | 660 | |
| 7745 |
잘살아보자
|
10년 전 | 897 | |
| 7744 |
잘살아보자
|
10년 전 | 404 | |
| 7743 | 10년 전 | 929 | ||
| 7742 |
starbros
|
10년 전 | 815 | |
| 7741 |
잘살아보자
|
10년 전 | 640 | |
| 7740 |
잘살아보자
|
10년 전 | 508 | |
| 7739 |
잘살아보자
|
10년 전 | 450 | |
| 7738 |
잘살아보자
|
10년 전 | 513 | |
| 7737 |
잘살아보자
|
10년 전 | 474 | |
| 7736 |
잘살아보자
|
10년 전 | 492 | |
| 7735 |
잘살아보자
|
10년 전 | 826 | |
| 7734 |
잘살아보자
|
10년 전 | 417 | |
| 7733 |
잘살아보자
|
10년 전 | 524 | |
| 7732 |
잘살아보자
|
10년 전 | 677 | |
| 7731 |
잘살아보자
|
10년 전 | 601 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기