function URLEncode (clearString) { var output = ''; var x = 0; clearString = clearString.toString(); var regex = /(^[a-zA-Z0-9_.]*)/; while (x < clearString.length) { var match = regex.exec(clearString.substr(x)); if (match != null && match.length > 1 && match[1] != '') { output += match[1]; x += match[1].length; } else { if (clearString[x] == ' ') output += '+'; else { var charCode = clearString.charCodeAt(x); var hexVal = charCode.toString(16); output += '%' + hexVal.toUpperCase(); } x++; } } return output; } function getBoundsObject(tag){ var techbug = new Object(); if(tag !=null && tag != undefined ){ if(tag.getBoundingClientRect){ //IE, FF3 var rect = tag.getBoundingClientRect(); techbug.left = rect.left + (document.documentElement.scrollLeft || document.body.scrollLeft); techbug.top = rect.top + (document.documentElement.scrollTop || document.body.scrollTop); techbug.width = rect.right - rect.left; techbug.height = rect.bottom - rect.top +1; // +1 = Moz¿Í ¸ÂÃã } else if (document.getBoxObjectFor) { // gecko ¿£Áø ±â¹Ý FF3Á¦¿Ü var box = document.getBoxObjectFor(tag); techbug.left = box.x; techbug.top = box.y; techbug.width = box.width; techbug.height = box.height; }else { techbug.left = tag.offsetLeft; techbug.top = tag.offsetTop; techbug.width = tag.offsetWidth; techbug.height = tag.offsetHeight + 3; // +1 = Moz¿Í ¸ÂÃã var parent = tag.offsetParent; if (parent != tag) { while (parent) { techbug.left += parent.offsetLeft; techbug.top += parent.offsetTop; parent = parent.offsetParent; } } // ¿ÀÆä¶ó¿Í »çÆÄ¸®ÀÇ 'absolute' postionÀÇ °æ¿ì bodyÀÇ offsetTopÀ» À߸ø °è»ê º¸Á¤ var ua = navigator.userAgent.toLowerCase(); if (ua.indexOf('opera') != -1 || ( ua.indexOf('safari') != -1 && getStyle(tag, 'position') == 'absolute' )) { techbug.top -= document.body.offsetTop; } } return techbug; } } function sub_menu_view(no, mode){ if(mode=='on'){ var tag = document.getElementById('gameangelmenu'+no); var btn_posiction = getBoundsObject(tag); document.getElementById('gameangel_submenu'+no).style.top = (btn_posiction.top+12)+'px'; document.getElementById('gameangel_submenu'+no).style.left = btn_posiction.left+'px'; document.getElementById('gameangel_submenu'+no).style.display = ''; }else{ document.getElementById('gameangel_submenu'+no).style.display = 'none'; } } function getCookie_top(cname) { var name = cname + "="; var ca = document.cookie.split(';'); for(var i=0; i·Î±×¾Æ¿ô'; // ºñȸ¿ø } else { HTML_in += ''; } HTML_in += ''; document.write(HTML_in); /*ÀÌÀüÆäÀÌÁö*/ var document_referrer = document.referrer; if(document_referrer.indexOf("%BF%A3%C1%A9%C4%A5%BF%EB") != -1){ document.location.href = 'http://7the.gameangel.com'; } if(document_referrer.indexOf("¿£Á©Ä¥¿ë") != -1){ document.location.href = 'http://7the.gameangel.com'; } function resize_Win(size_value){ var x,y; if(size_value=="FULL"){ x = window.screen.availWidth; y = window.screen.availHeight; }else{ x = size_value; y = size_value; } window.moveTo(0,0); window.resizeTo(x,y); } if(location.href == "http://7th.gameangel.com/7th_teaser.php"){ resize_Win('FULL'); } function angel_event_setCookie( name, value, expiredays ) { var todayDate = new Date(); todayDate.setDate( todayDate.getDate() + expiredays ); //todayDate.setHours(0,0,0,0); document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + "; domain=7th.gameangel.com" } function closedWin(cookie_key,layer_id) { if(cookie_key)angel_event_setCookie( cookie_key, "done" , 7 ); document.getElementById(layer_id).style.display = 'none'; } function location_go(url){ //location.href = url; window.open(url,'_blank'); } var href_url = location.href; href_url = href_url.replace("index.html", ""); if ( href_url == "http://7th.gameangel.com/" ) { cookiedata = document.cookie; } /* âÀ» ´ÝÀ»¶§ À̺¥Æ® */ window.onbeforeunload = function () { if(f5_push==1)return; //»õ·Î°íħÀÌ´å if(window.event.clientY < 0 && document.body.offsetWidth-window.event.clientX < 23){ alert('"°ÔÀÓ¿£Á© Ä¥¿ëÀü¼³"À» ÀÌ¿ëÇØ Áּż­ °¨»çµå¸³´Ï´Ù.\nÀç¹æ¹®½Ã ³×À̹ö¿¡¼­ "°ÔÀÓ¿£Á© Ä¥¿ëÀü¼³"À» °Ë»öÇØ ÁÖ¼¼¿ä!'); } //alert("¿ÞÂÊ:" + window.event.clientX + ", »ó´Ü:" + window.event.clientY); //alert("¿ÞÂÊ:" + document.body.offsetWidth+ ", »ó´Ü:" + document.body.offsetHeight ); } var f5_push = 0; function doNotReload(){ if( (event.ctrlKey == true && (event.keyCode == 78 || event.keyCode == 82)) || (event.keyCode == 116) ) { f5_push = 1; //alert("»õ·Î°íħ ¹æÁö"); return; }else{ f5_push = 0; } } document.onkeydown = doNotReload;