var select_obj; var userid; var sendVars; var offsetxpoint =0; var goTarget; var ohing_bname; /* document.onmousedown = ndown; function ndown(evt){ */ document.onclick = function ndown(evt){ event_target = evt?evt.target:event.srcElement; var this_event = event_target; event_target = event_target.toString(); event_check = event_target.indexOf("javascript:memView("); if(!event_check){ changeLayer('block',evt); return; } else{ changeLayer('none',evt); return ; } } function changeLayer(status,e) { var obj = document.getElementById('MiniMenu'); var _tmpx,_tmpy, marginx, marginy; posx=0;posy=0; var ev=(!e)?window.event:e;//IE:Moz if (ev.pageX){//Moz posx=ev.pageX; posy=ev.pageY; } else if(ev.clientX){//IE if(document.documentElement){//IE 6+ strict mode posx = ev.clientX + document.documentElement.scrollLeft; posy = ev.clientY + document.documentElement.scrollTop; } else if(document.body){//Other IE posx = ev.clientX + document.body.scrollLeft; posy = ev.clientY + document.body.scrollTop; } } else{return false}//old browsers _tmpx = posx; _tmpy = posy; _marginx = document.body.clientWidth - _tmpx; _marginy = document.body.clientHeight - _tmpy; /* if(_marginx < 0) _tmpx = event.clientX + document.body.scrollLeft + _marginx ; else _tmpx = event.clientX + document.body.scrollLeft ; if(_marginy < 0) _tmpy = event.clientY + document.body.scrollTop + _marginy +20 ; else _tmpy = event.clientY + document.body.scrollTop; */ obj.style.left= (_tmpx+8 + offsetxpoint)+'px'; obj.style.top= (_tmpy + 8)+'px'; if(status=='block') { if(select_obj) { select_obj.style.display='none'; select_obj=null; } select_obj=obj; }else{ select_obj=null; } obj.style.display=status; } function memView(uid,send,gotarget){ userid = uid; sendVars = send; goTarget = gotarget; if(document.getElementById('MiniMenu').style.display != 'none'){ if(memview_frame.location.href != '/app_board/skin/iframe/memview.html?userid='+userid && userid != 'undefined'){ /*°¡ÀÔÀλ翡¼± ¹öµð½Åû¸øÇÔ*/ if(ohing_bname == 'sign_greeting'){ memview_frame.location.href = '/app_board/skin/iframe/memview.html?userid='+userid+'&nobuddy=true'; }else{ memview_frame.location.href = '/app_board/skin/iframe/memview.html?userid='+userid; } } } } function memView_img(uid,send,x,y,gotarget){ userid = uid; sendVars = send; goTarget = gotarget; if(MiniMenu.style.display=='block'){ MiniMenu.style.display = 'none'; }else{ MiniMenu.style.display = 'block'; } } /*ȸ¿ø¸µÅ© ¸Þ´º*/ function LayerHtml(src) { var html; html ="
\n"; html +=""; /* html +="\n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +="
 
\n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +="
\n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +=" \n"; html +="
\"¿£Á©Á¸¿£Á©Á¸ ¹æ¹®  
\"Ä£±¸½Åû\"Ä£±¸½Åû  
\"ÂÊÁöº¸³»±â\"ÂÊÁöº¸³»±â  
\n"; html +="
\n"; html +="
 
\n"; */ html +="
\n"; document.write(html); } /*Ä£±¸Ãß°¡*/ function buddy_add(v, v2){ if(v2){ var q = confirm(v2+'´ÔÀ» ¹öµð·Î Ãß°¡ÇϽðڽÀ´Ï±î?'); }else{ var q = confirm('Buddy ·Î Ãß°¡ÇϽðڽÀ´Ï±î?'); } if(q == true){ if(v){ proc.location.href = '/app_board/proc/sns/buddy_add.proc.php?buddy_mid='+v; }else{ proc.location.href = '/app_board/proc/sns/buddy_add.proc.php?buddy_mid='+userid; } } } /* ÂÊÁöº¸³»±â */ function memoWin() { ref = "/app_board/skin/popwin/memo.proc.php?type=send&tomid="+userid; var window_left = (screen.width-800)/2; var window_top = (screen.height-600)/2; var openwin = window.open(ref,"noteWin",'width=700,height=360, resize=no, status=no, top=' + window_top + ',left=' + window_left + ''); openwin.focus(); } function memolist(){ ref = "/app_board/skin/popwin/memo.proc.php?type=receive_list"; var window_left = (screen.width-800)/2; var window_top = (screen.height-600)/2; var openwin = window.open(ref,"noteWin",'width=700,height=360, resize=no, status=no, top=' + window_top + ',left=' + window_left + ''); openwin.focus(); } function win_memo_direct(param){ ref = "/app_board/skin/popwin/memo.proc.php?"+param; var window_left = (screen.width-800)/2; var window_top = (screen.height-600)/2; var openwin = window.open(ref,"noteWin",'width=700,height=360, resize=no, status=no, top=' + window_top + ',left=' + window_left + ''); openwin.focus(); }