div 새창 띄우기.....
페이지 정보
작성자 최고관리자 작성일 21-02-10 17:35 조회 9,543 댓글 0본문
<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 closeWinbanner() {
if(document.getElementById("B2winClose").checked == true)
{
setCookie("banner2", "stop" , 1);
}
document.all["theme_banner2"].style.visibility = "hidden";
}
// -->
</SCRIPT>
<div id="theme_banner2" style='position:absolute; left:202; top:104; width:192; height:210; z-index:2; visibility: visible;'>
<input type="checkbox" name="B2winClose" value="Y">오늘 이창을 열지 않음<img src="img/bt_close11.gif" width="37" height="18" style="cursor:hand" OnClick="closeWinbanner()" />
</div>
<script>
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("banner2") == "stop"){
document.all["theme_banner2"].style.visibility = "hidden";
}
</script>
<!--
function setCookie( name, value, expiredays ) {
var todayDate = new Date();
todayDate.setDate( todayDate.getDate() + expiredays );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}
function closeWinbanner() {
if(document.getElementById("B2winClose").checked == true)
{
setCookie("banner2", "stop" , 1);
}
document.all["theme_banner2"].style.visibility = "hidden";
}
// -->
</SCRIPT>
<div id="theme_banner2" style='position:absolute; left:202; top:104; width:192; height:210; z-index:2; visibility: visible;'>
<input type="checkbox" name="B2winClose" value="Y">오늘 이창을 열지 않음<img src="img/bt_close11.gif" width="37" height="18" style="cursor:hand" OnClick="closeWinbanner()" />
</div>
<script>
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("banner2") == "stop"){
document.all["theme_banner2"].style.visibility = "hidden";
}
</script>
댓글목록 0
등록된 댓글이 없습니다.