팝업창에서 오늘 하루 이 페이지 열지 않기 체크박스 사용입니다.
==========================
오프너 페이지에 들어갈 코드
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년 전 | 384 | ||
| 7829 |
|
9년 전 | 562 | |
| 7828 | 9년 전 | 493 | ||
| 7827 | 9년 전 | 379 | ||
| 7826 | 9년 전 | 386 | ||
| 7825 | 9년 전 | 438 | ||
| 7824 | 9년 전 | 421 | ||
| 7823 | 9년 전 | 328 | ||
| 7822 | 9년 전 | 323 | ||
| 7821 | 9년 전 | 267 | ||
| 7820 | 9년 전 | 323 | ||
| 7819 |
|
9년 전 | 728 | |
| 7818 | 10년 전 | 342 | ||
| 7817 | 10년 전 | 462 | ||
| 7816 | 10년 전 | 365 | ||
| 7815 | 10년 전 | 571 | ||
| 7814 | 10년 전 | 398 | ||
| 7813 | 10년 전 | 341 | ||
| 7812 | 10년 전 | 348 | ||
| 7811 | 10년 전 | 367 | ||
| 7810 | 10년 전 | 505 | ||
| 7809 | 10년 전 | 442 | ||
| 7808 | 10년 전 | 311 | ||
| 7807 | 10년 전 | 367 | ||
| 7806 |
프로그래머7
|
10년 전 | 1309 | |
| 7805 | 10년 전 | 1234 | ||
| 7804 |
zahir1312
|
10년 전 | 747 | |
| 7803 |
|
10년 전 | 1350 | |
| 7802 | 10년 전 | 412 | ||
| 7801 | 10년 전 | 834 | ||
| 7800 | 10년 전 | 1068 | ||
| 7799 | 10년 전 | 508 | ||
| 7798 | 10년 전 | 465 | ||
| 7797 | 10년 전 | 462 | ||
| 7796 | 10년 전 | 305 | ||
| 7795 | 10년 전 | 458 | ||
| 7794 | 10년 전 | 490 | ||
| 7793 | 10년 전 | 1009 | ||
| 7792 | 10년 전 | 415 | ||
| 7791 | 10년 전 | 497 | ||
| 7790 | 10년 전 | 465 | ||
| 7789 |
fbastore
|
10년 전 | 1408 | |
| 7788 | 10년 전 | 499 | ||
| 7787 | 10년 전 | 361 | ||
| 7786 | 10년 전 | 517 | ||
| 7785 | 10년 전 | 534 | ||
| 7784 | 10년 전 | 601 | ||
| 7783 | 10년 전 | 408 | ||
| 7782 | 10년 전 | 452 | ||
| 7781 | 10년 전 | 866 | ||
| 7780 | 10년 전 | 787 | ||
| 7779 | 10년 전 | 754 | ||
| 7778 | 10년 전 | 323 | ||
| 7777 | 10년 전 | 414 | ||
| 7776 | 10년 전 | 414 | ||
| 7775 | 10년 전 | 349 | ||
| 7774 | 10년 전 | 605 | ||
| 7773 | 10년 전 | 339 | ||
| 7772 | 10년 전 | 677 | ||
| 7771 | 10년 전 | 336 | ||
| 7770 | 10년 전 | 618 | ||
| 7769 | 10년 전 | 336 | ||
| 7768 | 10년 전 | 552 | ||
| 7767 | 10년 전 | 1124 | ||
| 7766 | 10년 전 | 450 | ||
| 7765 | 10년 전 | 485 | ||
| 7764 |
잘살아보자
|
10년 전 | 334 | |
| 7763 |
|
10년 전 | 1404 | |
| 7762 |
Tosea
|
10년 전 | 1025 | |
| 7761 | 10년 전 | 614 | ||
| 7760 |
잘살아보자
|
10년 전 | 620 | |
| 7759 |
잘살아보자
|
10년 전 | 433 | |
| 7758 |
잘살아보자
|
10년 전 | 542 | |
| 7757 | 10년 전 | 1190 | ||
| 7756 |
ITBANK
|
10년 전 | 1223 | |
| 7755 | 10년 전 | 1905 | ||
| 7754 | 10년 전 | 1009 | ||
| 7753 | 10년 전 | 846 | ||
| 7752 | 10년 전 | 1353 | ||
| 7751 |
잘살아보자
|
10년 전 | 477 | |
| 7750 |
잘살아보자
|
10년 전 | 445 | |
| 7749 |
잘살아보자
|
10년 전 | 446 | |
| 7748 |
잘살아보자
|
10년 전 | 432 | |
| 7747 |
잘살아보자
|
10년 전 | 529 | |
| 7746 |
잘살아보자
|
10년 전 | 642 | |
| 7745 |
잘살아보자
|
10년 전 | 885 | |
| 7744 |
잘살아보자
|
10년 전 | 394 | |
| 7743 | 10년 전 | 917 | ||
| 7742 |
starbros
|
10년 전 | 794 | |
| 7741 |
잘살아보자
|
10년 전 | 618 | |
| 7740 |
잘살아보자
|
10년 전 | 487 | |
| 7739 |
잘살아보자
|
10년 전 | 443 | |
| 7738 |
잘살아보자
|
10년 전 | 496 | |
| 7737 |
잘살아보자
|
10년 전 | 455 | |
| 7736 |
잘살아보자
|
10년 전 | 475 | |
| 7735 |
잘살아보자
|
10년 전 | 808 | |
| 7734 |
잘살아보자
|
10년 전 | 405 | |
| 7733 |
잘살아보자
|
10년 전 | 507 | |
| 7732 |
잘살아보자
|
10년 전 | 661 | |
| 7731 |
잘살아보자
|
10년 전 | 584 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기