<!--레이어팝업 스크립트-->


<script language = 'JavaScript'>

function layerClose() {
   Layer.style.visibility="hidden";
}

//쿠기가 있는지 체크함..
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 "";
}

//쿠키가 없으면 쿠키 지정함..
function notice_setCookie( name, value, expiredays )
{
        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
 return;
}


//팝업 감추기..(쿠키 체크 포함..)
function  stopClose()
{
 if ( notice_getCookie( "CMT" ) != "done" )
 {
  notice_setCookie("CMT", "done", 3);  // 오른쪽 숫자는 쿠키를 유지할 기간을 설정합니다
  document.all.Layer.style.display="none";
 }
}
</script>
<!--여기까지-->


<!-- 레이어 팝업 시작 -->

<script>
//쿠키를 체크하여...쿠키가 없으면  팝업창을 띄워준다... 있으면  그냥 넘어간다.(팝업 안 띄운다..)
if(notice_getCookie("CMT") != "done")
{

 document.write("<div id='Layer' style='height: 150px;  width: 300px; cursor: Hand; position: absolute; top: 230px; left: 300px;' z-index='100';>");
 document.write("<table width='340' border='0' cellspacing='0' cellpadding='0'> ");
   document.write("    <tr>");
     document.write("     <td colspan='2'><img src='1116_pop01.gif' width='340' onclick='javascript:stopClose();'></td>");
     document.write("    </tr>");
   document.write("    <tr>");
     document.write("     <td colspan='2'><a href='my/my_pro_continue.htm?service_name=hosting_continue' target='main' onFocus='this.blur()'><img src='1116_pop02.gif' width='340' border='0'></a></td>");
     document.write("    </tr>");
   document.write("    <tr>");
     document.write("            <td colspan='2'><a href='hosting/hosting_join.htm?service_name=order_form' target='main' onFocus='this.blur()'><img src='1116_pop03.gif' width='340' border='0'></a></td> ");
     document.write("    </tr>");
   document.write("    <tr background='1116_pop04.gif'> ");
     document.write("     <td width='270' height='35' align='left'  background='1116_pop04.gif' style='padding-left:10px; '><form name='form1' method='post' action=''>");
       document.write("              <input type='checkbox' name='stopclose' onclick='javascript:stopClose();'>");
     document.write("              </form></td>");
     document.write("            <td width='70'height='35'  background='1116_popbg.gif ><a href='#' valign='top' onFocus='this.blur()'><img src='1116_pop_close.gif' border='0' onClick='layerClose()'></a></td>");
   document.write("    </tr>");
 document.write("</table>");
 document.write("</div> ");
}
</script>

<!--여기까지-->

Posted by 알 수 없는 사용자
,