[Html] 레이어팝업
  
 작성자 :
작성일 : 2007-05-30     조회 : 1,885  

<!-- 팝업 시작-->
<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.notice_form.chkbox.checked ){
        setCookie( "maindiv", "done" , 1 );
    }
    document.all['divpop'].style.visibility = "hidden";
}
//--> 
</SCRIPT>
<!-- 팝업 끝 -->


<!-- 팝업레이어 -->
<DIV id=divpop
style="position:absolute; left:250px; top:10px; z-index:200; visibility:hidden;">
<TABLE cellSpacing=0 cellPadding=0>
  <TBODY>
  <TR>
    <TD><embed width="390" height="100" src="flash/kt_1.swf" play="true" loop="true" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed></TD></TR>
  <TR>
    <FORM name=notice_form>
    <TD>
      <TABLE cellSpacing=0 cellPadding=0 width="100%">
        <TBODY>
        <TR>
          <TD style="COLOR: #000000" align=right width="100%"><INPUT type=checkbox value=checkbox name=chkbox>오늘
            하루 이 창을 열지 않음&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A href="javascript:closeWin();"><b><B
            style="COLOR: #000000">닫기</B></A>&nbsp;&nbsp;&nbsp;&nbsp;</TD></TR></TBODY></TABLE></TD></TR></FORM></TBODY></TABLE></DIV>
<SCRIPT language=Javascript>
cookiedata = document.cookie;   
if ( cookiedata.indexOf("maindiv=done") < 0 ){     
    document.all['divpop'].style.visibility = "visible";
    }
    else {
        document.all['divpop'].style.visibility = "hidden";
}
</SCRIPT>
<!-- 팝업레이어 -->