원프레임 에러 질문 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

원프레임 에러 질문 정보

원프레임 에러 질문

본문

사이트 제작중인데 원프레임으로 이렇게 고생하기도 처음이네요...
매일 제로보드 쓰다가 그누보드 쓰는데.. ㅠㅠ

처음 그림처럼 그냥 제작하면 파란줄이 잘 나오는데....
두번째 그림처럼 게시판 안에 넣은 소스는 한줄이 띄어져서 나옵니다.

어찌해야 하는지 ㅠㅠ 아시는분 부탁좀 드릴께요~
  • 복사

댓글 전체

============ 상단 파일입니다. menu_5_head.php

<?
 include_once("./_common.php");
 include_once("$g4[path]/head.sub.php");
 include_once("$g4[path]/lib/latest.lib.php");
 include_once("$g4[path]/lib/outlogin.lib.php"); 
 include_once("$g4[path]/lib/poll.lib.php");
 include_once("$g4[path]/lib/visit.lib.php");
 include_once("$g4[path]/lib/connect.lib.php");
 include_once("$g4[path]/lib/popular.lib.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>:::  :::</title>
<link href="css/ns_style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
  if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
<!-- 창따라 흐르기 ------------------------------------------------------------------------------------------------------------------------------------------------------>
<SCRIPT language=javascript>
var bNetscape4plus = (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >= "4");
var bExplorer4plus = (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >= "4");

function always_pos()
{
        var yMenuFrom, yMenuTo, yButtonFrom, yButtonTo, yOffset, timeoutNextCheck;

        if ( bNetscape4plus ) { // 네츠케이프 용 설정
                yMenuFrom  = document["scrollmenu"].top;
                yMenuTo    = top.pageYOffset + 134;  // 화면 위쪽으로 부터의 위치
        }
        else if ( bExplorer4plus ) {  // 익스플로러 용 설정
                yMenuFrom  = parseInt (scrollmenu.style.top, 10);
                yMenuTo    = document.body.scrollTop + 134; // 화면 위쪽으로 부터의 위치
        }

        timeoutNextCheck = 500;

        if ( Math.abs (yButtonFrom - (yMenuTo + 152)) < 6 && yButtonTo < yButtonFrom ) {
                setTimeout ("always_pos()", timeoutNextCheck);
                return;
        }


        if ( yButtonFrom != yButtonTo ) {
                yOffset = Math.ceil( Math.abs( yButtonTo - yButtonFrom ) / 10 );
                if ( yButtonTo < yButtonFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["divLinkButton"].top += yOffset;
                else if ( bExplorer4plus )
                        divLinkButton.style.top = parseInt (divLinkButton.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }
        if ( yMenuFrom != yMenuTo ) {
                yOffset = Math.ceil( Math.abs( yMenuTo - yMenuFrom ) / 20 );
                if ( yMenuTo < yMenuFrom )
                        yOffset = -yOffset;

                if ( bNetscape4plus )
                        document["scrollmenu"].top += yOffset;
                else if ( bExplorer4plus )
                        scrollmenu.style.top = parseInt (scrollmenu.style.top, 10) + yOffset;

                timeoutNextCheck = 10;
        }

        setTimeout ("always_pos()", timeoutNextCheck);
}
function OnLoad()
{
        var y;

        // 프레임 에서 벗어나게 하는 함수입니다. 프레임에 넣으려면 삭제하세요
        if ( top.frames.length )
        //      top.location.href = self.location.href;

        // 페에지 로딩시 포지션
        if ( bNetscape4plus ) {
                document["scrollmenu"].top = top.pageYOffset + 180;
                document["scrollmenu"].visibility = "visible";
        }
        else if ( bExplorer4plus ) {
                scrollmenu.style.top = document.body.scrollTop + 180;
                scrollmenu.style.visibility = "visible";
        }

        always_pos();
        return true;
}

//-->
</SCRIPT>
<!-- 창따라 흐르기 끝 ------------------------------------------------------------------------------------------------------------------------------>
</head>

<body onload="MM_preloadImages('images/menu_2_01.jpg','images/menu_2_02.jpg','images/menu_2_03.jpg','images/menu_2_04.jpg','images/menu_2_05.jpg','images/menu_2_06.jpg','images/menu_2_07.jpg','images/slide_scroll_menu_2_02.jpg','images/slide_scroll_menu_2_03.jpg','images/slide_scroll_menu_2_04.jpg','images/slide_scroll_menu_2_07.jpg','images/slide_scroll_menu_2_05.jpg')">
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/top_line.jpg">
  <tr>
    <td><img src="images/top_line.jpg" width="1000" height="2" alt="top" /></td>
  </tr>
</table>
<table width="1000" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="80"><table width="300" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/logo.png" border="0" width="300" height="80" alt="logo" /></td>
        </tr>
    </table></td>
    <td align="right"><table width="600" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td align="right" valign="bottom"><table width="480" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="350" border="0" cellspacing="0" cellpadding="1">
              <tr>                </tr>
              </table></td>
            </tr>
          <tr>
            <td align="center"><strong>네이버에서 검색하세요!!</strong></td>
            </tr>
          <tr>
            <td align="center"><img src="images/naver_search.gif" width="380" height="40" alt="네이버에서 검색" /></td>
            </tr>
          <tr>
            <td><table width="350" border="0" cellspacing="0" cellpadding="1">
              <tr>                </tr>
              </table></td>
            </tr>
          </table></td>
        <td align="right" valign="bottom"><table width="220" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><table width="220" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td align="right" style="border-bottom:#ccc dotted 1px; padding: 0 5 5 10;"><img src="images/btn_title.jpg" width="200" height="25" alt="검색바" /></td>
                    </tr>
                  <tr>
                    <td height="5"></td>
                    </tr>
                  <tr>
                    <td><!-- 상단 로고 및 버튼 끝 -->
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td align="right"><form action="<?=$g4[bbs_path]?>/search.php" method="get" name="fsearch" id="fsearch">
                            <table border="0" cellpadding="0" cellspacing="0" align="center">
                              <tr>
                                <td><table border="3" cellspacing="0" width="100%" height="30" bordercolordark="#999999" bordercolorlight="#666666" bgcolor="white" bordercolor="#333333">
                                  <tr>
                                    <td><input type="hidden" name="sfl2"  value="wr_subject||wr_content" />
                                      <input type="hidden" name="sop2"  value="or" />
                                      <input name="stx2" itemname="검색어" required="required" value="<?=$stx?>" size="21" style="font-size:12; border-color:white; border-style:solid;" /></td>
                                    </tr>
                                  </table></td>
                                <td width="5"></td>
                                <td><input type="image" src="<?=$g4[path]?>/images/btn.jpg"  border="0" align="absmiddle" onmouseover="this.style.filter='alpha(opacity=70)';this.style.cursor='hand'" onmouseout="this.style.filter=''" /></td>
                                </tr>
                              </table>
                            </form></td>
                          </tr>
                        </table>
                      <!-- 검색 스크립트 없어도 헤드에 있음 -->
                      <script language="javascript" type="text/javascript">
function fsearchbox_submit(f)
{
    if (f.stx.value.length < 2) {
        alert("검색어는 두글자 이상 입력하십시오.");
        f.stx.select();
        f.stx.focus();
        return false;
    }

    // 검색에 많은 부하가 걸리는 경우 이 주석을 제거하세요.
    var cnt = 0;
    for (var i=0; i<f.stx.value.length; i++) {
        if (f.stx.value.charAt(i) == ' ')
            cnt++;
    }

    if (cnt > 1) {
        alert("빠른 검색을 위하여 검색어에 공백은 한개만 입력할 수 있습니다.");
        f.stx.select();
        f.stx.focus();
        return false;
    }

    f.action = "<?=$g4['bbs_path']?>/search.php";
    return true;
}
                      </script>
                      <!-- 검색 끝 --></td>
                    </tr>
                  </table></td>
                </tr>
              </table></td>
            </tr>
          </table></td>
        </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/menu_back.jpg">
  <tr>
    <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><a href="../ns_ceo.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('m1','','images/menu_2_01.jpg',1)"><img src="images/menu_1_01.jpg" width="184" height="40" border="0" id="m1" /></a></td>
            <td><a href="../standard.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','images/menu_2_02.jpg',1)"><img src="images/menu_1_02.jpg" width="129" height="40" border="0" id="Image7" /></a></td>
            <td><a href="../vtda.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','images/menu_2_03.jpg',1)"><img src="images/menu_1_03.jpg" width="149" height="40" border="0" id="Image8" /></a></td>
            <td><a href="../serve.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','images/menu_2_04.jpg',1)"><img src="images/menu_1_04.jpg" width="150" height="40" border="0" id="Image9" /></a></td>
            <td><a href="../license.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','images/menu_2_05.jpg',1)"><img src="images/menu_1_05.jpg" width="121" height="40" border="0" id="Image10" /></a></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
   
    <!--여기서 부터 스크롤 배너 레이어 설정시작-->
<div id="scrollmenu" style="width:100px; height:378px; position:absolute; left:1020px; top:0px; z-index:1; visibility:visible;">
      <!--위의  left:650px; top:2000px 로 스크롤 배너 레이어의 위치를 조정--><script>OnLoad();</script>
      <table width="100" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><img src="images/slide_scroll_menu_2_01.jpg" width="100" height="27" alt="title" /></td>
        </tr>
        <tr>
          <td><a href="../mos.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image28','','images/slide_scroll_menu_2_02.jpg',1)"><img src="images/slide_scroll_menu_1_02.jpg" name="Image28" width="100" height="58" border="0" id="Image28" /></a></td>
        </tr>
        <tr>
          <td><a href="../serve.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image29','','images/slide_scroll_menu_2_03.jpg',1)"><img src="images/slide_scroll_menu_1_03.jpg" name="Image29" width="100" height="50" border="0" id="Image29" /></a></td>
        </tr>
        <tr>
          <td><a href="../vtda.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image30','','images/slide_scroll_menu_2_04.jpg',1)"><img src="images/slide_scroll_menu_1_04.jpg" name="Image30" width="100" height="61" border="0" id="Image30" /></a></td>
        </tr>
        <tr>
          <td><a href="../hischool.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image34','','images/slide_scroll_menu_2_05.jpg',1)"><img src="images/slide_scroll_menu_1_05.jpg" name="Image34" width="100" height="57" border="0" id="Image34" /></a></td>
        </tr>
        <tr>
          <td><a href="../ns_map.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image33','','images/slide_scroll_menu_2_07.jpg',1)"><img src="images/slide_scroll_menu_1_07.jpg" name="Image33" width="100" height="61" border="0" id="Image33" /></a></td>
        </tr>
      </table>
</DIV>
<!--여기까지 스크롤 배너 레이어 끝-->

    <table width="1000" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top" background="sub_menu_images/menu_back.jpg"><table width="210" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><?
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.

echo outlogin("basic"); // basic 스킨으로 아웃로그인을 출력합니다.
?></td>
          </tr>
          <tr>
            <td valign="top" class="내용설명_하얀글자">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top"><table width="210" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td><img src="sub_menu_images/sub_menu_1_1_11.jpg" width="210" height="9" alt="bottom" /></td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td height="82" align="center" valign="middle">&nbsp;</td>
          </tr>
          <tr>
            <td align="center" valign="middle"><img src="images/call_center.jpg" width="200" height="200" alt="call" /></td>
          </tr>
          <tr>
            <td height="160" align="center" valign="middle"><img src="images/mos_center.jpg" width="200" height="150" alt="moscenter" /></td>
          </tr>
          <tr>
            <td valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td valign="top">&nbsp;</td>
          </tr>
        </table></td>
        <td><table width="15" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td valign="top"><table width="775" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td valign="top"><table width="775" border="0" cellspacing="0" cellpadding="8" background="images/775_back.jpg">
              <tr>
                <td><table width="759" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td height="65" bgcolor="#FFFFFF"><table width="459" border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td><table width="759" border="0" cellspacing="0" cellpadding="0">
                          <tr>
                            <td height="65" bgcolor="#FFFFFF"><table width="459" border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><img src="images/study_title.jpg" width="459" height="65" alt="ceo_title" /></td>
                              </tr>
                            </table></td>
                            <td valign="bottom" bgcolor="#FFFFFF"><table width="300" border="0" cellspacing="0" cellpadding="10">
                              <tr>
                                <td align="right">Home &gt; 교육&amp;자료실 &gt; 자료실</td>
                              </tr>
                            </table></td>
                          </tr>
                        </table></td>
                      </tr>
                    </table></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
        </table>
          <table width="775" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td>





================================================ 하단 파일 입니다. bottom.php

</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/bottom_back.jpg">
  <tr>
    <td><table width="1000" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><img src="images/bottom.jpg" width="1000" height="80" alt="copyright" /></td>
      </tr>
    </table></td>
  </tr>
</table>
<table width="350" border="0" cellspacing="0" cellpadding="1">
  <tr>  </tr>
</table>
</body>
</html>




=================================================== CSS.css 입니다.

@charset "utf-8";
.standard_list_view  {
font-family: "돋움체";
font-size: 9pt;
line-height: 13pt;
color: #666;
text-decoration: none;
}
.title {
font-family: "돋움체";
font-size: 10pt;
font-weight: bold;
color: #000;
text-decoration: none;
}
.sub_title {
font-family: "돋움체";
font-size: 9pt;
font-weight: bold;
color: #333;
text-decoration: none;
}
.list_view {
font-family: "돋움체";
font-size: 9pt;
color: #CCC;
text-decoration: none;
}
td {
font-family: "돋움체";
font-size: 9pt;
color: #000;
text-decoration: none;
}
.list_view_white_text {
font-family: "돋움체";
font-size: 9pt;
color: #FFF;
text-decoration: none;
font-weight: bold;
}
a:link {
font-family: "돋움체";
font-size: 9pt;
color: #999;
text-decoration: none;
}
a:visited {
font-family: "돋움체";
font-size: 9pt;
color: #999;
text-decoration: none;
}
a:active {
font-family: "돋움체";
font-size: 9pt;
color: #999;
text-decoration: none;
}
a:hover {
font-family: "돋움체";
font-size: 9pt;
color: #C60;
text-decoration: underline;
height: auto;
width: auto;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
body {
font-family: "돋움체";
font-size: 9pt;
color: #999;
text-decoration: none;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: none;
background-attachment: scroll;
background-repeat: no-repeat;
background-position: center top;
}
img {
text-decoration: none;
border-top-width: thin;
border-right-width: thin;
border-bottom-width: thin;
border-left-width: thin;
border-top-style: none;
border-right-style: none;
border-bottom-style: none;
border-left-style: none;
}
.line_ht_high {
font-family: "돋움체";
font-size: 9pt;
line-height: 34px;
color: #666;
text-decoration: none;
}
.sub_page_big_title {
font-family: "돋움체";
font-size: 14pt;
line-height: 35px;
font-weight: bold;
color: #333;
text-decoration: none;
}
오류 원인 알아냈습니다.
해결법이 나왔네요;;;

1. TD 안에 table 100% 선언
2. 드림위버 이용시 새로운 파일 만들때, 새로운 형식을 PHP로 하니 되네요... ㅠㅠ
© SIRSOFT
현재 페이지 제일 처음으로