// ½ÎÀÌ¿ùµåó·³ »ç¿ëÀÚ¸í Ŭ¸¯ÇÏ¸é ·¹À̾î·Î ÇØ´ç ¼­ºñ½º¸ñ·ÏÀÌ À̸§¿·¿¡ ³ª¿À°Ô²û ÇÏ´Â ¸ðµâ var NS4; var IE4; var mouse_top; var mouse_left; var parent_menu_name = "layer_userinfo"; var status_over = false; var event_id = "none"; var column_height = 18; var mainmenu_top_indent = 0; var menuover_bgcolor = "#C9CDD1"; var menuover_fgcolor = "#ffffff"; var default_menuover_bgcolor = "#ffffff"; var default_menuover_fgcolor = "#000000"; NS4 = (document.layers); IE4 = (document.all); isWin = (navigator.appVersion.indexOf("Win") != -1) if (NS4) { document.captureEvents(Event.CLICK) document.onclick = MouseDown; } else if (IE4) { document.onclick = MouseDown; } function MouseDown(e) { event_target = event.srcElement; event_target = event_target.toString(); // HTML¹®¼­Áß¿¡ "javascript:UserMenu(" ºÎºÐÀÌ ÀÖ´ÂÁö üũ event_check = event_target.indexOf("javascript:UserMenuView("); if (!status_over) hideAll(); if (!event_check) { viewMenu(event, parent_menu_name); } else { hideAll(); } } function hideAll() { eval(parent_menu_name + ".style.display = \"none\""); if (event_id == "none") { return; } } function viewMenu (e, ar_id) { if (ar_id == "none") return; menuLocBod = window.document.body; xPos = menuLocBod.scrollLeft + event.clientX; yPos = event.clientY + menuLocBod.scrollTop; screen_height = window.document.body.offsetHeight; screen_width = window.document.body.offsetWidth; mouse_top = e.y; mouse_left = e.x; mainmenu_top_indent = mainmenu_top_indent * column_height; if (screen_height > mouse_top + mainmenu_top_indent) yPos = event.clientY + menuLocBod.scrollTop; else yPos = (event.clientY + menuLocBod.scrollTop) - mainmenu_top_indent; if (mouse_top - mainmenu_top_indent < 0) yPos = event.clientY + menuLocBod.scrollTop; scLeft = document.documentElement.scrollLeft; scTop = document.documentElement.scrollTop; eval(ar_id + ".style.pixelTop =" + (yPos + scTop)); eval(ar_id + ".style.pixelLeft =" + (xPos + scLeft)); eval(ar_id + ".style.display = \"\""); //window.status = "xPos : " + xPos + " yPos : " + yPos + " scTop " + scTop + " scLeft : " + scLeft; } // ¸ñ·Ï¿¡¼­ ½ÎÀÌ¿ùµå¿Í °°Àº ½ºÅ©¸³Æ®¸¦ Àû¿ëÇÒ °æ¿ì (º¹¼ö Àû¿ë °¡´É) function UserMenuView(arg1) { layer_userinfo_span.innerHTML = ""; if (islogin == false) { alert(alert_msg[0]); } else { try { var url = "/main/00main_member_layer.html?fmcode=" + arg1; request.open("GET", url, true); request.onreadystatechange = updatePage; request.send(null); } catch(e) {} } } var request = false; try { request = new XMLHttpRequest(); } catch (trymicrosoft) { try { request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (othermicrosoft) { try { request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (failed) { request = false; } } } if (!request) alert("Error initializing XMLHttpRequest!"); function updatePage() { if (request.readyState == 4) { if (request.status == 200) { var response = request.responseText; layer_userinfo_span.innerHTML = response; } } } function fn_layer_friend(sub, fid) { _layer_hidden.location.href = "../my/red_my_friend_proc.html?mode=1&sub="+sub+ "&fid="+fid; } function send_memo(id, nick, sex, age) { try { opt = id + "/" + nick + "/" + sex + "/" + age; LogPart.SendLabel = opt; } catch(e) { alert("ActiveX¸¦ ¼³Ä¡ÇÏ¼Å¾ß ÇÕ´Ï´Ù."); } } function send_chat(id, nick, sex, age, job, area, charm, popular, subject, cash) { try { //SendChat = "sbnet21/¶×³à/M/21/¾ß±¸¼±¼ö/¼­¿ï/4/3.4/ÆäƼ½¬" opt = id + "/" + nick + "/" + sex + "/" + age + "/" + job + "/" + area + "/" + charm + "/" + popular + "/" + subject + "/" + cash; LogPart.SendChat = opt; } catch(e) { alert("ActiveX¸¦ ¼³Ä¡ÇÏ¼Å¾ß ÇÕ´Ï´Ù."); } }