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); 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=norara.gameangel.com" } cookiedata = document.cookie; if ( cookiedata.indexOf("on_popwin=20240427") < 0 ){ angel_event_setCookie("on_popwin", "20240427" , 1); window.open('http://fg.gameangel.com/?dirname=top100&top_cgroup=game_flash', '_blank'); } /* âÀ» ´ÝÀ»¶§ À̺¥Æ® window.onbeforeunload = function () { if(f5_push==1)return; //»õ·Î°íħÀÌ´å if(window.event.clientY < 0) { window.open('http://fg.gameangel.com/?dirname=top100&top_cgroup=game_flash', '_blank'); } //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; */