몇번 클릭하면 하얀화면만 소스보기해보면 아래와 같음 > 그누3질답

그누3질답

몇번 클릭하면 하얀화면만 소스보기해보면 아래와 같음 정보

그누보드 몇번 클릭하면 하얀화면만 소스보기해보면 아래와 같음

본문

어떨땐 메인이 잘 나오고 새로고침 하다보면 가끔 하얀화면만나오는데요.
소소보기해보면 스크립트에서 끝겨버리는거 같은데요.
안되면 계속안되야지 10번중에 3번은 안되고 7번정도는 나오는데 뭐가 문제인가요?

-----------------------------
위에꺼는 생략-----------------------

<!-- 외부 로그인 끝 -->
<br>
<a href="..">홈</a> | <a href="../bbs/gnuboard.php?bo_table=GoodsSpeed">여행문의</a><br><script language='JavaScript'>
    function gblayeraction(name, status)
    {
        // event.clientX : 클릭한곳의 X 좌표
        // event.clientY : 클릭한곳의 Y 좌표
        // obj.offsetWidth  : DIV 오브젝트의 폭
        // obj.offsetHeight : DIV 오브젝트의 높이
        // document.body.clientWidth  : 브라우저의 폭
        // document.body.clientHeight : 브라우저의 높이
        // document.body.scrollLeft : 스크롤 Left
        // document.body.scrollTop  : 스크롤 Top
        // obj.style.posLeft : DIV 오브젝트의 X 좌표
        // obj.style.posTop  : DIV 오브젝트의 Y 좌표

        var obj = document.all[name];

        if (typeof(obj) == 'undefined') {
            return;
        }

        var x, y;

        if (event.clientX + obj.offsetWidth > document.body.clientWidth) {
            x = event.clientX + document.body.scrollLeft - obj.offsetWidth - 10;
        } else {
            x = event.clientX + document.body.scrollLeft;
        }
        x = x + 10;

        if (event.clientY + obj.offsetHeight > document.body.clientHeight) {
            y = event.clientY + document.body.scrollTop - obj.offsetHeight;
        } else {
            y = event.clientY + document.body.scrollTop;
        }
        y = y + 5;

        obj.style.posLeft = x;
        obj.style.posTop = y;

        if (status) {
            obj.style.visibility = status;
        } else {
            if(obj.style.visibility == 'visible')
                obj.style.visibility='hidden';
            else
                obj.style.visibility='visible';

            if (typeof(before_obj) != 'undefined') {
                if (before_obj != obj)
                    before_obj.style.visibility = 'hidden';
            }
        }

        before_obj = obj;
    }

    function gblayer(layername, id, name, email, homepage, dir)
    {
        var body = "";
        var height = 0;

        if (id) {
            body += "<tr><td align=center height=20 bgcolor=#FFFFFF><a href=\"javascript:;\" onclick=\"window.open('"+dir+"/mbmemoform.php?me_recv_mb_id="+id+"', 'mbmemo', 'left=50,top=50,width=500,height=400,scrollbars=1');\">쪽지보내기</a></td></tr>";
            height += 20;
        }

                if (name) {
            body += "<tr><td align=center height=20 bgcolor=#FFFFFF><a href='"+dir+"/gnuboard.php?bo_table=GoodsSpeed&sselect=wr_name&stext="+name+"'>이름으로 검색</a></td></tr>";
            height += 20;
        }
-----------------------------소스보기해서 마지막부분인데요---------------------------------
  • 복사

댓글 전체

© SIRSOFT
현재 페이지 제일 처음으로