[제나플러스] 관리자 메뉴 드랍시 위치가 고정되어 버릴때 > 팁앤테크

본문 바로가기

사이트 내 전체검색

뒤로가기 팁앤테크

[제나플러스] 관리자 메뉴 드랍시 위치가 고정되어 버릴때

본문

DTD 선언을 한 사이트 에서는 그누보드의 기본기능인 관리자 드랍메뉴가 고정되서 한곳에서 출력이 됩니다..

이를 본인의 메뉴위치에서 보이시려면

아래와 같이 수정하시기 바랍니다..

admin.head.php

<script type='text/javascript'>
//<![CDATA[
if(!g4_is_ie) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
var prevdiv = null;
var timerID = null;

function getMouseXY(e)
{
    if(g4_is_ie) { // grab the x-y pos.s if browser is IE
        tempX = event.clientX + document.body.scrollLeft;
        tempY = event.clientY + document.body.scrollTop;
    } else {  // grab the x-y pos.s if browser is NS
        tempX = e.pageX;
        tempY = e.pageY;
    } 

    if(tempX < 0) {tempX = 0;}
    if(tempY < 0) {tempY = 0;} 

    return true;
}

function imageview(id, w, h)
{

    menu(id);

    var el_id = document.getElementById(id);

    //submenu = eval(name+".style");
    submenu = el_id.style;
    submenu.left = tempX - ( w + 11 ) + 'px';
    submenu.top  = tempY - ( h / 2 ) + 'px';

    selectBoxVisible();

    if(el_id.style.display != 'none')
        selectBoxHidden(id);
}

function help(id, left, top)
{
    menu(id);

    var el_id = document.getElementById(id);

    //submenu = eval(name+".style");
    submenu = el_id.style;
    submenu.left = tempX - 50 + left;
    submenu.top  = tempY + 15 + top;

    selectBoxVisible();

    if(el_id.style.display != 'none')
        selectBoxHidden(id);
}

// TEXTAREA
function textarea_size(fld, size)
{
    var rows = parseInt(fld.rows);

    rows += parseInt(size);
    if(rows > 0) {
        fld.rows = rows;
    }
}
</script>
추천0

댓글목록 0

등록된 댓글이 없습니다.

전체 825건 11 페이지
게시물 검색
Copyright (c) 株式会社YHPLUS. All rights reserved.

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒171-0014 東京都豊島区池袋2-41-5 アーバン154 8F
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

PC 버전으로 보기