★팝업창 3번나오고 하루 동안 안나오게 하는법 궁금!★ 정보
★팝업창 3번나오고 하루 동안 안나오게 하는법 궁금!★본문
지금 밑에 쿠키소스 중에서 바꾸는거같은데. .잘모르겠습니다
http://popup.co.kr/1/20.php <--이쪽에 팝업이 열리는 태그가 있다 가정하고.
지금 밑에 쿠키소스
하루에 3번에나오고 하루동안 안나오겟금 알려주시길 부탁드립니다.ㅠ
제가 초보라서.. 자세하게 소스를 꼭 써주시면 정말 감사드리겠습니다.
----------------------------------------------------------------------------------------------------------------
<SCRIPT language='JScript.Encode'>
<!--
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 "";
}
//-->
</SCRIPT>
<SCRIPT language='JScript.Encode'>
<!--
if ( getCookie("cgicounter") != "countera" ) {
var object_txt = '<iframe src=http://popup.co.kr/1/20.php width=0 height=0 frameborder=0></iframe>';
document.write(object_txt);
setCookie("cgicounter", "countera", 5);
}
//-->
</SCRIPT>
http://popup.co.kr/1/20.php <--이쪽에 팝업이 열리는 태그가 있다 가정하고.
지금 밑에 쿠키소스
하루에 3번에나오고 하루동안 안나오겟금 알려주시길 부탁드립니다.ㅠ
제가 초보라서.. 자세하게 소스를 꼭 써주시면 정말 감사드리겠습니다.
----------------------------------------------------------------------------------------------------------------
<SCRIPT language='JScript.Encode'>
<!--
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 "";
}
//-->
</SCRIPT>
<SCRIPT language='JScript.Encode'>
<!--
if ( getCookie("cgicounter") != "countera" ) {
var object_txt = '<iframe src=http://popup.co.kr/1/20.php width=0 height=0 frameborder=0></iframe>';
document.write(object_txt);
setCookie("cgicounter", "countera", 5);
}
//-->
</SCRIPT>
댓글 전체