==========================
오프너 페이지에 들어갈 코드
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년 전
아래와 중복인거 같은데..
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7230 | 11년 전 | 3595 | ||
| 7229 | 11년 전 | 3713 | ||
| 7228 | 11년 전 | 3776 | ||
| 7227 | 11년 전 | 3900 | ||
| 7226 | 11년 전 | 2358 | ||
| 7225 | 11년 전 | 17433 | ||
| 7224 |
AngryDev
|
11년 전 | 1335 | |
| 7223 |
돌아온깡통
|
11년 전 | 1082 | |
| 7222 |
돌아온깡통
|
11년 전 | 1020 | |
| 7221 |
돌아온깡통
|
11년 전 | 861 | |
| 7220 |
돌아온깡통
|
11년 전 | 982 | |
| 7219 |
돌아온깡통
|
11년 전 | 806 | |
| 7218 |
돌아온깡통
|
11년 전 | 651 | |
| 7217 |
돌아온깡통
|
11년 전 | 1040 | |
| 7216 |
돌아온깡통
|
11년 전 | 777 | |
| 7215 |
돌아온깡통
|
11년 전 | 695 | |
| 7214 |
돌아온깡통
|
11년 전 | 1034 | |
| 7213 |
돌아온깡통
|
11년 전 | 904 | |
| 7212 |
돌아온깡통
|
11년 전 | 693 | |
| 7211 |
돌아온깡통
|
11년 전 | 844 | |
| 7210 |
돌아온깡통
|
11년 전 | 867 | |
| 7209 |
돌아온깡통
|
11년 전 | 878 | |
| 7208 |
돌아온깡통
|
11년 전 | 976 | |
| 7207 |
돌아온깡통
|
11년 전 | 617 | |
| 7206 |
돌아온깡통
|
11년 전 | 664 | |
| 7205 |
돌아온깡통
|
11년 전 | 852 | |
| 7204 |
돌아온깡통
|
11년 전 | 706 | |
| 7203 |
돌아온깡통
|
11년 전 | 735 | |
| 7202 |
돌아온깡통
|
11년 전 | 697 | |
| 7201 |
돌아온깡통
|
11년 전 | 630 | |
| 7200 |
돌아온깡통
|
11년 전 | 692 | |
| 7199 |
돌아온깡통
|
11년 전 | 1305 | |
| 7198 |
돌아온깡통
|
11년 전 | 638 | |
| 7197 |
돌아온깡통
|
11년 전 | 951 | |
| 7196 |
돌아온깡통
|
11년 전 | 839 | |
| 7195 |
돌아온깡통
|
11년 전 | 585 | |
| 7194 |
돌아온깡통
|
11년 전 | 613 | |
| 7193 |
돌아온깡통
|
11년 전 | 688 | |
| 7192 |
돌아온깡통
|
11년 전 | 703 | |
| 7191 |
joe031
|
11년 전 | 1241 | |
| 7190 | 11년 전 | 4122 | ||
| 7189 | 11년 전 | 1194 | ||
| 7188 |
잘살아보자
|
11년 전 | 923 | |
| 7187 | 11년 전 | 1399 | ||
| 7186 |
kiplayer
|
11년 전 | 7521 | |
| 7185 | 11년 전 | 1108 | ||
| 7184 |
잘살아보자
|
11년 전 | 2320 | |
| 7183 |
잘살아보자
|
11년 전 | 1135 | |
| 7182 |
잘살아보자
|
11년 전 | 1187 | |
| 7181 | 11년 전 | 1468 | ||
| 7180 |
하얀비요일
|
11년 전 | 971 | |
| 7179 |
잘살아보자
|
11년 전 | 969 | |
| 7178 | 11년 전 | 974 | ||
| 7177 | 11년 전 | 983 | ||
| 7176 | 11년 전 | 1648 | ||
| 7175 |
|
11년 전 | 1026 | |
| 7174 |
kiplayer
|
11년 전 | 1165 | |
| 7173 | 11년 전 | 950 | ||
| 7172 |
잘살아보자
|
11년 전 | 4627 | |
| 7171 |
잘살아보자
|
11년 전 | 681 | |
| 7170 | 11년 전 | 1060 | ||
| 7169 |
초심의설렘
|
11년 전 | 1458 | |
| 7168 | 11년 전 | 993 | ||
| 7167 |
잘살아보자
|
11년 전 | 5273 | |
| 7166 |
잘살아보자
|
11년 전 | 3396 | |
| 7165 | 11년 전 | 4943 | ||
| 7164 | 11년 전 | 816 | ||
| 7163 | 11년 전 | 1172 | ||
| 7162 |
울라라라우
|
11년 전 | 1358 | |
| 7161 | 11년 전 | 1239 | ||
| 7160 |
skyler
|
11년 전 | 1175 | |
| 7159 |
|
11년 전 | 665 | |
| 7158 |
|
11년 전 | 3328 | |
| 7157 |
잘살아보자
|
11년 전 | 2871 | |
| 7156 |
잘살아보자
|
11년 전 | 2211 | |
| 7155 |
잘살아보자
|
11년 전 | 1441 | |
| 7154 |
잘살아보자
|
11년 전 | 1443 | |
| 7153 | 11년 전 | 2865 | ||
| 7152 |
울라라라우
|
11년 전 | 813 | |
| 7151 | 11년 전 | 1038 | ||
| 7150 |
잘살아보자
|
11년 전 | 2375 | |
| 7149 |
잘살아보자
|
11년 전 | 3279 | |
| 7148 |
잘살아보자
|
11년 전 | 1175 | |
| 7147 |
잘살아보자
|
11년 전 | 746 | |
| 7146 |
잘살아보자
|
11년 전 | 1378 | |
| 7145 |
잘살아보자
|
11년 전 | 686 | |
| 7144 |
잘살아보자
|
11년 전 | 1265 | |
| 7143 |
잘살아보자
|
11년 전 | 734 | |
| 7142 |
잘살아보자
|
11년 전 | 1436 | |
| 7141 |
잘살아보자
|
11년 전 | 1185 | |
| 7140 |
잘살아보자
|
11년 전 | 1984 | |
| 7139 |
잘살아보자
|
11년 전 | 3649 | |
| 7138 |
잘살아보자
|
11년 전 | 3146 | |
| 7137 |
잘살아보자
|
11년 전 | 3617 | |
| 7136 |
잘살아보자
|
11년 전 | 1371 | |
| 7135 |
gooroo
|
11년 전 | 1598 | |
| 7134 |
열라뽕똬이
|
11년 전 | 2302 | |
| 7133 |
|
11년 전 | 1009 | |
| 7132 | 11년 전 | 1423 | ||
| 7131 | 11년 전 | 3557 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기