그누보드를 이용해서 홈페이지를 만들었는데 프레임을 나눴거든요!? > 그누4 질문답변

그누4 질문답변

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

그누보드를 이용해서 홈페이지를 만들었는데 프레임을 나눴거든요!? 정보

그누보드를 이용해서 홈페이지를 만들었는데 프레임을 나눴거든요!?

본문

예를들어.. 제일 루트에
index.html 이라는 메인 프레임을 만들고
 
그누보드가 있는 /php/ 디렉토리의 index.php를 불러들인다면..
 
index.html 파일.
--------------------------------------------------------------------------------
<?
$LastModified = gmdate("D d M Y H:i:s", filemtime($HTTP_SERVER_VARS[SCRIPT_FILENAME]));
header("Last-Modified: $LastModified GMT");
header("ETag: \"$LastModified\"");
?>
<html>
<head>
<title>♡</title>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr">
</head>
<frameset rows="1, 1%*" cols="*" border="0" framespacing="0" frameborder="NO">
  <frame src="top.php" name="top" scrolling="no" marginwidth="0" marginheight="0">
  <frame src="/php/index.php" name="main">
</frameset>
<noframes>
<body bgcolor="#FFFFFF">
</body>
</noframes>
</html>
----------------------------------------------------------------------------------
이거고..
 
/php/index.php 의 내용
----------------------------------------------------------------------------------
<?
include_once("./_common.php");
include_once("./_head.php");
?>
<html>
<head>
<meta http-equiv="imagetoolbar" content="no">
<script language="javascript" src="/php/script.js"></script>
</head>
<body bgcolor=#FFFEEA style="margin:0px" style="background:url('/imgs/bg_top.png') repeat-x top">
<table cellpadding=0 cellspacing=0 border=0 width=922px align=left>
<tr>
 <td width=16px></td>
 <td width=215px valign=top>
  <table cellpadding=0 cellspacing=0 border=0 width=100%>
  <tr>
   <td valign=top>   
    <a href="/php/index.php" onfocus=blur()><img src="/imgs/logo.png" border=0 width=211px height=81px></a>
   </td>
  </tr>
  <tr height=112px><td></td></tr>
  <tr>
   <td align=center>
    <table cellpadding=0 cellspacing=0 border=0 width=100%>
 <tr>
  <td valign=top colspan=3>
<?
// 로그인 테이블
include_once("./_common.php");
include_once("$g4[path]/lib/outlogin.lib.php");
echo outlogin("basic");
?>
  </td>
 </tr>
 <tr><td height=18px colspan=3 background="/imgs/sub_bg_top.png"></td></tr>
 <tr>
  <td width=6px background="/imgs/sub_bg_left_middle.png"></td>
  <td width=204px bgcolor=#FFFFFF>
  <center>
     <script>round_head('195','#E8F6FC','#F3FAFD')</script>  
  <table cellpadding=0 cellspacing=0 border=0 width=187px style="table-layout:fixed">
  <tr>
   <td width=40px align=center valign=middle><img src="/imgs/icon_bit.png" border=0></td>
   <td width=147px>
    <table cellpadding=0 cellspacing=0 border=0 width=100%>
    <tr height=20px>
     <td><?=connect("basic");?></td>
    </tr>
    <tr height=1><td background="/imgs/dot.png"></td></tr>
    <tr height=20px>
     <td><?=visit("basic");?></td>
    </tr>
    <tr height=1><td background="/imgs/dot.png"></td></tr>
    <tr height=20px>
     <td><a href=javascript:popup('http://w365.com/korea/kor/fcst/w365_fcst_sht04_sub01.html','330','210','auto','auto','0','0','0') onfocus=blur() class=tmp><font style='font-family:굴림; font-size:8.5pt; color:#666666;'>오늘의 날씨 : </font><? include "./_weather_info.php"; ?></a></td>
    </tr>
    </table>
   </td>
  </tr>
     </table>
  <script>round_foot('195','#E8F6FC','#F3FAFD')</script>  
  </center>
  </td>
  <td width=5px background="/imgs/sub_bg_right_middle.png"></td>
 </tr>
 <tr><td height=7px colspan=3 background="/imgs/sub_bg_bottom.png"></td></tr>
 </table>
   </td>
  </tr>
  <tr height=5px><td></td></tr>
  <tr><td align=center style="padding-left:1px"><a href=http://125.249.199.196 target=_blank onfocus=blur() title="웹디스크 접속^^:"><img src="/imgs/bt_webdisk.png" border=0></a></td></tr>
  <tr height=3px><td></td></tr>
  <tr><td align=center style="padding-left:1px"><a href=http://dls.cbesr.or.kr target=_blank onfocus=blur() title="디지탈도서관 접속^^:"><img src="/imgs/bt_digitalbook.png" border=0></a></td></tr>
  <tr height=15px><td></td></tr>
  </table>
 </td>
 <td width=691px valign=top>
  <table cellpadding=0 cellspacing=0 border=0 width=100% style="table-layout:fixed">
  <tr height=240px>
   <td>
<!-- 메뉴라인 플래쉬 -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="691" height="95" id="menubar" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/imgs/menubar.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<embed src="/imgs/menubar.swf" quality="best" wmode="transparent" width="691" height="95" name="menubar" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- 메뉴라인 플래쉬 -->
<!-- 메인 플래쉬 -->
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="691" height="145" id="main" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="/imgs/main.swf" />
<param name="quality" value="best" />
<param name="wmode" value="transparent" />
<embed src="/imgs/main.swf" quality="best" wmode="transparent" width="691" height="145" name="main" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
<!-- 메뉴라인 플래쉬 -->
<!-- //<img src="/imgs/flash.png" border=0>-->
   </td>
  </tr>
  <tr>
   <td style="padding-left:14px">
   <table cellpadding=0 cellspacing=0 border=0 width=666px style="background-color:#FFFFFF;border-style:solid;border-color:#E2EACA; 
border-top-width:0px; border-bottom-width:1px; border-left-width:1px; border-right-width:1px;">
   <tr>
    <td valign=top align=center style="padding:5px">
  <table cellpadding=0 cellspacing=0 border=0 width=627px>
  <tr>
   <td width=330px valign=top>
<?
// 공지사항
include_once("$g4[path]/lib/latest.lib.php");
echo latest("notice", "sub_22", 6, 38);
?>   
       <table cellpadding=0 cellspacing=0 border=0 width=100%>
    <tr height=5px><td></td></tr>
    <tr height=1><td background="/imgs/dot.png"></td></tr>
    <tr height=20px><td></td></tr>
    </table>
       <table cellpadding=0 cellspacing=0 border=0 width=100%>
    <tr>
     <td>
<?
// 오늘의 식단
include_once("$g4[path]/lib/latest.lib.php");
echo latest("todayeat", "sub_24", 1, 0);
?>   
  </td>
    </tr>
    </table>
   </td>
   <td width=15px>   </td>
   <td valign=top>
<?
// 월간 행사일정표
include_once("$g4[path]/lib/schedule.lib.php");
echo latest_schedule("calendar","sub_21");
?>   
   </td>
  </tr>
  <tr height=10px><td colspan=3></td></tr>
  <tr>
   <td width=330px valign=top>
<?
// 새로올라온 글
extend_new(5);
?>   
       <table cellpadding=0 cellspacing=0 border=0 width=100%>
    <tr height=5px><td></td></tr>
    <tr height=1><td background="/imgs/dot.png"></td></tr>
    <tr height=5px><td></td></tr>
    </table>
   </td>
   <td width=15px></td>
   <td valign=top>
<?
// 자랑스러운 어린이 ^^;
include_once("$g4[path]/lib/schedule.lib.php");
echo latest("bestfriend","sub_39",1,33);
?>   
   </td>
  </tr>
  <tr>
   <td colspan=3 align=left>
<?
// 새로올라온 포토갤러리
include_once("$g4[path]/lib/latest.lib.php");
echo latest("photoshot", "sub_26", 5, 24);
?>
      </td>
  </tr>
  <tr height=10px><td colspan=3></td></tr>
     <tr>
   <td colspan=3 align=left>
     <!-- 배너공간 테이블 -->
     <script>round_head('617','#E8F6FC','#FFFFFF')</script>
   <table cellpadding=0 cellspacing=0 border=0 width=607 height=40px align=center>
   <tr>
    <td width=80px align=center><img src="/imgs/title_banner.png" border=0></td>
    <td width=15px></td>
    <td width=1px bgcolor=#E8F6FC></td>
    <td width=15px></td>
    <td>
<?
// 배너리스트
include_once("$g4[path]/autoBANNER.php");
?>   
          </td>
   </tr>
   </table>
     <script>round_foot('617','#E8F6FC','#FFFFFF')</script>
  <!-- 배너공간 테이블 끝 -->
   </td>
  </tr>
  <tr height=10px><td colspan=3></td></tr>
  </table>
 </td>
   </tr>
   </table>
   <table cellpadding=0 cellspacing=0 border=0 width=100%>
   <tr height=10px><td></td></tr>
   <tr>
    <td align=left style="padding-left:5px">
   <IMG SRC="/imgs/copyright.png" WIDTH=536 HEIGHT=100 BORDER=0 ALT="" USEMAP="#copyright_Map">
      <MAP NAME="copyright_Map">
       <AREA SHAPE="rect" ALT="" COORDS="455,41,522,54" HREF="javascript:popup('/php/privacy.php','660','500','auto','auto','1','0','0')" onfocus=blur()>
      </MAP>
 </td>
   </tr>
   </table>
   </td>
  </tr>
  </table>
 </td>
</tr>
</table>
</body>
</html>
----------------------------------------------------------------------------------
이것인데.. 이상하게..
/php/index.php 를 바로 실행시키면.. 배경 BGCOLOR=#FFFEEA 의 색깔이 다 나타는데..
 
/index.html 로 프레임을 나눈 파일을 실행시키면.. 다른건 잘 작동하는데
BGCOLOR=#FFFEEA가 먹지가 않고 배경이 하얀색으로 나옵니다..
 
뭐가 잘못된건지.. 정말 모르겠습니다... 염치없지만.. 도와주실분 계신가요?
http://caferg.com/index.html 이 그 프레임 파일이고..
http://caferg.com/php/index.php 이 원 실행파일입니다.
도와주세요.. ㅜ.ㅜ
  • 복사

댓글 전체

그누보드 자체의 style.css 때문인것 같습니다. head와 tail을 불러오는 과정에서 스타일시트를 읽거든요.
스타일시트로 다시 정의를 해주시면 될것 같습니다.
© SIRSOFT
현재 페이지 제일 처음으로