|
|
-
<script language="JavaScript">
-
- <!--
- var usePop = 1; // 1À̸é popUP »ç¿ë
- var useMonth = 10; // °øÁöâÀ» »ç¿ëÇÒ ¿ù 10Àº 10¿ùÀÓ
- var useDate = 9; // °øÁöâÀ» »ç¿ëÇÒ ÀÏ 6Àº 6ÀϱîÁöÀÓ
- var useTime = 10; // °øÁöâÀÌ ¸Ó¹«¸¦ ½Ã°£ 10Àº 10ÃÊÀÓ
- var expiredays = 1; //°øÁöâ ÇÏ·ç ¾È¶ç¿ì±â ½Ã°£. 1Àº ÇÏ·çÀÓ
- var layerTop = 10; //»ó´Ü¿¡¼ ¶³¾îÁø À§Ä¡¸¦ ÀâÀ¸¼¼¿ä
- var layerLeft = 10; //ÁËÃø¿¡¼ ¶³¾îÁø À§Ä¡¸¦ ÀâÀ¸¼¼¿ä
- var layerWidth = 260; //·¹ÀÌ¾î ³ÐÀÌ
- var layerHeight = 260; //·¹ÀÌ¾î ³ôÀÌ
- var layerTopBg = "#666666"; //»ó´Ü,ÇÏ´Ü ¹Ù ¹è°æ
- var layerPopBg = "#FFFFFF"; //³»¿ë ºÎºÐ ¹è°æ
- function startTime()
- {
- var cName ="divPop";
- var time = new Date();
- var year = time.getFullYear();
- usedTime = new Date(year,parseInt(useMonth)-1,parseInt(useDate)+1);
- endTime = (usedTime.getTime()-time.getTime())/(24*60*60*1000);
- showTime = Math.ceil(endTime);
- if ( showTime < 0 || usePop != 1)
- {
- document.getElementById('divPop').style.visibility = "hidden";
- }
- else
- {
- cookieIndex = getCookie(cName);
- if ( !cookieIndex )
- {
- document.getElementById('divPop').style.visibility = "visible";
- }
- else
- {
- document.getElementById('divPop').style.visibility = "hidden";
- }
- }
- document.getElementById('divPop').style.top = layerTop+"px";
- document.getElementById('divPop').style.left = layerLeft+"px";
- document.getElementById('divPop').style.width = layerWidth+"px";
- document.getElementById('popMain').style.height = layerHeight+"px";
- document.getElementById('popTop').style.background = layerTopBg;
- document.getElementById('divPop').style.background = layerPopBg;
- document.getElementById('popBottom').style.background = layerTopBg;
- h= time.getHours();
- m = time.getMinutes();
- s = time.getSeconds();
- closeTime = h*3600+m*60+s;
- closeTime += parseInt(useTime);
- setTimer();
- }
- function setTimer()
- {
- var time = new Date();
- hour = time.getHours();
- min = time.getMinutes();
- sec = time.getSeconds();
- curTime = hour*3600+min*60+sec;
- if ( curTime >= closeTime )
- {
- document.getElementById('divPop').style.visibility = "hidden";
- }
- else
- {
- window.setTimeout("setTimer()",1000);
- }
- }
- function setCookie( name, value, expiredays )
- {
- var todayDate = new Date();
- todayDate.setDate(todayDate.getDate() + expiredays);
- document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";"
- }
- function closeLayer()
- {
- if ( document.notice_form.chkbox.checked )
- {
- setCookie("divPop", "os" , expiredays);
- }
- document.getElementById('divPop').style.visibility = "hidden";
- }
- isIE = document.all;
- isNN = !document.all && document.getElementById;
- isN4 = document.layers;
- var max_zindex = 30;
- function drag( mode,e,obj )
- {
- if ( mode == 'start' )
- {
- obj.offsetx = isIE ? event.clientX : e.clientX;
- obj.offsety = isIE ? event.clientY : e.clientY;
- obj.nowX = parseInt(obj.style.left);
- obj.nowY = parseInt(obj.style.top);
- obj.dragable = '1';
- var new_zindex = max_zindex + 1;
- obj.style.zIndex = new_zindex;
- max_zindex = new_zindex;
- }
- else if ( mode == 'move' )
- {
- if ( obj.dragable == '1' )
- {
- var x = isIE ? (obj.nowX + event.clientX - obj.offsetx) : (obj.nowX + e.clientX - obj.offsetx);
- var y = isIE ? (obj.nowY + event.clientY - obj.offsety) : (obj.nowY + e.clientY - obj.offsety);
- var max_winw = document.body.clientWidth - parseInt(obj.style.width);
- var max_winh = document.body.clientHeight - parseInt(obj.style.height);
- if ( x >= 0 && x <=max_winw ) obj.style.left = x;
- if ( y >= 0 && y <=max_winh ) obj.style.top = y;
- }
- }
- else if ( mode == 'stop' )
- {
- obj.dragable='0'
- }
- }
- //-->
- </script>
- </head>
- <STYLE type="text/css">
- #divPop { position:absolute; border:2px #999999 solid; z-index:999; visibility:visible;
- cursor:move; filter:alpha(Opacity:80,style:0));-moz-opacity:.50;opacity:.50;
- }
- #divPop #popTop { height: 30px; }
- #divPop #popMain { height:270px; }
- #divPop #popBottom { height: 40px; }
- .topContent { position:relative; top:5px; margin:0 0 0 5px; font-weight:bold; font-size:12px; color:#ffffff; }
- .mainContent { margin:5px 0 0 5px; font-weight:normal; font-size:12px; color:#666666; }
- .bottomContent { position:relative; top:5px; margin:0 0 2px 0; font-weight:bold; font-size:12px; color:#ffffff; cursor:pointer; text-align:center }
- </STYLE>
- <body onLoad="startTime();">
- <form name="notice_form">
- <div id="divPop" style="position:absolute;left:0px;top:0px;z-index:1;width:0px;height:0px;" onSelectStart="return false;" onMouseDown="drag('start',event,this);" onMouseUp="drag('stop',event,this);" onMouseMove="drag('move',event,this);" dragable='0'>
- <div id="popTop">
- <div class="topContent">°øÁö <span id="today" style="font-weight:normal; color:#ff8000"></span></div>
- </div>
- <div id="popMain">
- <div class="mainContent">
- <p>¼¿ø¿µ °³ÀÎÀü</p>
- <p>Memorandum of an Interstellar Surveyor </p>
- <p> (¾î´À ¼º°£Ãø·®±â»çÀÇ ºñ¸Á·Ï) </p>
- <p> </p>
- <p> Àå ¼Ò: ¸ð¶õ°¶·¯¸® Á¾·Î±¸ °üÈƵ¿ ¹é»óºôµù B1<br>
- *** °³ÀÎÁ¤º¸º¸È£¸¦ À§ÇÑ ÀüȹøÈ£ ³ëÃâ¹æÁö ***
- </p>
- <p>±â °£: 2007. 10. 17(Wed)-10. 23(Tue) </p>
- <p>ÃÊ´ëÀϽÃ: 2007. 10. 17(Wed) pm 6:0</p>
- </div>
- </div>
- <div id="popBottom">
- <div class="bottomContent"> <span style="font-weight:normal">ÀÌ Ã¢Àº</span><span id="stayTime" style="color:#ff8000"></span>ÃÊÈÄ¿¡
- ÀÚµ¿À¸·Î ´ÝÈü´Ï´Ù.</span><br>
- <input type="checkbox" name="chkbox" onclick="closeLayer();">
- ¿À´Ã ÇÏ·ç ÀÌ Ã¢À» ¿Áö ¾ÊÀ½<a href="javascript:closeLayer();"> [´Ý±â]</a> </div>
- </div>
- </div>
- </form>
- <script language="Javascript">
- 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 "";
- }
- function cal()
- {
- var t = new Date();
- var y = t.getFullYear();
- var m = t.getMonth();
- var d = t.getDate();
- var dw = t.getDay();
- var w;
- switch ( dw )
- {
- case 0: w = " (ìí¿äÀÏ)"; break;
- case 1: w = " (êÅ¿äÀÏ)"; break;
- case 2: w = " (ûý¿äÀÏ)"; break;
- case 3: w = " (â©¿äÀÏ)"; break;
- case 4: w = " (ÙÊ¿äÀÏ)"; break;
- case 5: w = " (ÑÑ¿äÀÏ)"; break;
- case 6: w = " (÷Ï¿äÀÏ)"; break;
- }
- document.getElementById('today').innerHTML = ""+y+ "³â " + (m+1) + "¿ù " + d + "ÀÏ"+w;
- }
- cal();
- document.getElementById('stayTime').innerHTML = useTime;
- </script>
|
|
|
|
|
|
|
|
°øÀ¯Çϱâ
|
°øÀ¯Çϱâ
|
|
|
|
|
|
|