'2009/06/16'에 해당되는 글 1건

  1. 2009.06.16 popup

popup

<script language="JavaScript">
<!--
function setCookie( name, value, expirehours ) {
var todayDate = new Date();
todayDate.setHours( todayDate.getHours() + expirehours );
document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function closeWin() {
if ( document.notice_form.chkbox.checked ){
setCookie( "ncookie", "done" , 24 );
}
document.getElementById('k_popup').style.display = "none";
}
-->
</script>

<!--전체레이어-->
<div id="k_popup" style="position:absolute; top:120; left:150; width:360; height:347;">


<!--이미지 레이어-->
<div>
<img src="data/0514_popup.jpg" width="360" height="347" border="0" usemap="#Map">
<map name="Map" id="Map">
  <area shape="rect" coords="8,142,353,210"  href="http://www.hrdedu.or.kr/guide/sub01_view.html?

no=1&code=01" target="_top"/>
  <area shape="rect" coords="11,212,348,285" href="http://www.hrdedu.or.kr/guide/sub01_view.html?

no=8&code=01" target="_top"/>
  <area shape="rect" coords="303,319,350,339"  href="javascript:closeWin()" />
</map>
</div>


<!--체크박스 레이어-->
<div style="position:absolute; top:320; left:85: width:50px; height:30px;">
<form name='notice_form'>
<input type='checkbox' name='chkbox' value='checkbox' onclick='javascript:closeWin();'>
</form>
</div>

</div>

<!--전체레이어-->
<div id="k_popup" style="position:absolute; top:120; left:500; width:360; height:347;">


<script language="JavaScript">
<!--
cookiedata = document.cookie;   
if ( cookiedata.indexOf("ncookie=done") < 0 ){     
document.getElementById('k_popup').style.display = "block";
}
else {
document.getElementById('k_popup').style.display = "none";
}

-->
</script>

Trackback 0 Comment 0
prev 1 next