묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이 소스 좀 봐주세요!
2002.08.06 09:59
팝업창 소스 인데 다시 안띄우기를 하면 하루 지나면 띄우고 싶은데 안뜨네요...
어떻게 해야 하죠?
웹스터디에 있는거는 제가 잘몰라서 안되고...
이것도 어디서 가지고 온건데....
가르쳐 주세요!
<SCRIPT LANGUAGE="JavaScript"><!--
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function 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 ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('main/pop.htm','notice','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=420');
noticeWindow.opener = self;
}
// --></SCRIPT>
-팝업창-
<SCRIPT language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin()
{
if ( document.forms[0].Notice.checked )
setCookie( "Notice", "done" , 1);
self.close();
}
// -->
</SCRIPT>
<form>
<input type=CHECKBOX name="Notice" value="">
다음에 접속시 창 안띄움
<input type=image src="js_win_11.gif" border=0 name=button value=" 닫 기 " onclick=closeWin()>
</form>
어떻게 해야 하죠?
웹스터디에 있는거는 제가 잘몰라서 안되고...
이것도 어디서 가지고 온건데....
가르쳐 주세요!
<SCRIPT LANGUAGE="JavaScript"><!--
function change(form)
{
if (form.url.selectedIndex !=0)
parent.location = form.url.options[form.url.selectedIndex].value
}
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function 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 ( getCookie( "Notice" ) != "done" )
{
noticeWindow = window.open('main/pop.htm','notice','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=350,height=420');
noticeWindow.opener = self;
}
// --></SCRIPT>
-팝업창-
<SCRIPT language="JavaScript">
<!--
function setCookie( name, value, expiredays )
{
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWin()
{
if ( document.forms[0].Notice.checked )
setCookie( "Notice", "done" , 1);
self.close();
}
// -->
</SCRIPT>
<form>
<input type=CHECKBOX name="Notice" value="">
다음에 접속시 창 안띄움
<input type=image src="js_win_11.gif" border=0 name=button value=" 닫 기 " onclick=closeWin()>
</form>