팝업창에서 오늘 하루 이 페이지 열지 않기 체크박스 사용입니다.
==========================
오프너 페이지에 들어갈 코드
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년 전 | 442 | ||
| 7829 |
|
9년 전 | 625 | |
| 7828 | 10년 전 | 556 | ||
| 7827 | 10년 전 | 451 | ||
| 7826 | 10년 전 | 454 | ||
| 7825 | 10년 전 | 496 | ||
| 7824 | 10년 전 | 458 | ||
| 7823 | 10년 전 | 405 | ||
| 7822 | 10년 전 | 377 | ||
| 7821 | 10년 전 | 325 | ||
| 7820 | 10년 전 | 359 | ||
| 7819 |
|
10년 전 | 757 | |
| 7818 | 10년 전 | 405 | ||
| 7817 | 10년 전 | 544 | ||
| 7816 | 10년 전 | 424 | ||
| 7815 | 10년 전 | 622 | ||
| 7814 | 10년 전 | 453 | ||
| 7813 | 10년 전 | 404 | ||
| 7812 | 10년 전 | 414 | ||
| 7811 | 10년 전 | 404 | ||
| 7810 | 10년 전 | 585 | ||
| 7809 | 10년 전 | 517 | ||
| 7808 | 10년 전 | 398 | ||
| 7807 | 10년 전 | 425 | ||
| 7806 |
프로그래머7
|
10년 전 | 1349 | |
| 7805 | 10년 전 | 1291 | ||
| 7804 |
zahir1312
|
10년 전 | 790 | |
| 7803 |
|
10년 전 | 1388 | |
| 7802 | 10년 전 | 478 | ||
| 7801 | 10년 전 | 873 | ||
| 7800 | 10년 전 | 1093 | ||
| 7799 | 10년 전 | 573 | ||
| 7798 | 10년 전 | 528 | ||
| 7797 | 10년 전 | 532 | ||
| 7796 | 10년 전 | 374 | ||
| 7795 | 10년 전 | 526 | ||
| 7794 | 10년 전 | 574 | ||
| 7793 | 10년 전 | 1069 | ||
| 7792 | 10년 전 | 494 | ||
| 7791 | 10년 전 | 574 | ||
| 7790 | 10년 전 | 523 | ||
| 7789 |
fbastore
|
10년 전 | 1463 | |
| 7788 | 10년 전 | 565 | ||
| 7787 | 10년 전 | 420 | ||
| 7786 | 10년 전 | 614 | ||
| 7785 | 10년 전 | 606 | ||
| 7784 | 10년 전 | 659 | ||
| 7783 | 10년 전 | 469 | ||
| 7782 | 10년 전 | 507 | ||
| 7781 | 10년 전 | 912 | ||
| 7780 | 10년 전 | 836 | ||
| 7779 | 10년 전 | 782 | ||
| 7778 | 10년 전 | 374 | ||
| 7777 | 10년 전 | 480 | ||
| 7776 | 10년 전 | 471 | ||
| 7775 | 10년 전 | 419 | ||
| 7774 | 10년 전 | 638 | ||
| 7773 | 10년 전 | 395 | ||
| 7772 | 10년 전 | 753 | ||
| 7771 | 10년 전 | 404 | ||
| 7770 | 10년 전 | 657 | ||
| 7769 | 10년 전 | 406 | ||
| 7768 | 10년 전 | 627 | ||
| 7767 | 10년 전 | 1188 | ||
| 7766 | 10년 전 | 508 | ||
| 7765 | 10년 전 | 553 | ||
| 7764 |
잘살아보자
|
10년 전 | 414 | |
| 7763 |
|
10년 전 | 1478 | |
| 7762 |
Tosea
|
10년 전 | 1074 | |
| 7761 | 10년 전 | 667 | ||
| 7760 |
잘살아보자
|
10년 전 | 704 | |
| 7759 |
잘살아보자
|
10년 전 | 539 | |
| 7758 |
잘살아보자
|
10년 전 | 613 | |
| 7757 | 10년 전 | 1253 | ||
| 7756 |
ITBANK
|
10년 전 | 1269 | |
| 7755 | 10년 전 | 1937 | ||
| 7754 | 10년 전 | 1072 | ||
| 7753 | 10년 전 | 898 | ||
| 7752 | 10년 전 | 1410 | ||
| 7751 |
잘살아보자
|
10년 전 | 553 | |
| 7750 |
잘살아보자
|
10년 전 | 491 | |
| 7749 |
잘살아보자
|
10년 전 | 504 | |
| 7748 |
잘살아보자
|
10년 전 | 520 | |
| 7747 |
잘살아보자
|
10년 전 | 605 | |
| 7746 |
잘살아보자
|
10년 전 | 689 | |
| 7745 |
잘살아보자
|
10년 전 | 931 | |
| 7744 |
잘살아보자
|
10년 전 | 429 | |
| 7743 | 10년 전 | 959 | ||
| 7742 |
starbros
|
10년 전 | 853 | |
| 7741 |
잘살아보자
|
10년 전 | 684 | |
| 7740 |
잘살아보자
|
10년 전 | 561 | |
| 7739 |
잘살아보자
|
10년 전 | 475 | |
| 7738 |
잘살아보자
|
10년 전 | 550 | |
| 7737 |
잘살아보자
|
10년 전 | 522 | |
| 7736 |
잘살아보자
|
10년 전 | 541 | |
| 7735 |
잘살아보자
|
10년 전 | 870 | |
| 7734 |
잘살아보자
|
10년 전 | 439 | |
| 7733 |
잘살아보자
|
10년 전 | 555 | |
| 7732 |
잘살아보자
|
10년 전 | 714 | |
| 7731 |
잘살아보자
|
10년 전 | 630 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기