head.php오류문제
지금 head.php문제로 며칠째 고생하고 있는데요
일단 직접코딩한 top.php를 head.php로 이름을 바꾸고 인쿠르드 시킬려고하는데요..
$g4[title] = "";
include_once("$g4[path]/head.php");
include_once("$g4[path]/head.php");
이렇게 하면 플래쉬가 나오질않습니다...
<? include"head.php";?>이런식으로 하면 나오는데요..
왜그런지 모르겠습니다.소스 올려드릴테니 한번 보시고 고쳐야할곳이 어딘지 부탁드립니다.
head.php
==============================================================================
<table width="996" border="0" cellspacing="0" cellpadding="0">
<table width="996" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" height="227" valign="top" style="background-image:url(/images/top_logo_bg.jpg); background-repeat:no-repeat;">
<script language="javascript">ShowFlash('../swf/index_logo.swf', 169, 96)</script>
</td>
<td><table width="835" height="227" border="0" cellpadding="0" cellspacing="0" style="background-image:url(/images/top_nevi_bg.jpg); background-repeat:no-repeat;">
<tr>
<td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="right" style="padding-right:7px;"><table height="29" border="0" cellpadding="0" cellspacing="0">
<tr>
<td><a href="include/."><img src="/images/top_btn_home.gif" width="31" height="28" border="0" /></a></td>
<td><a href="../bbs/login.php?url=/bbs/register.php"><img src="/images/top_btn_login.gif" width="45" height="28" border="0" /></td>
<td><a href="bbs/register.php"><img src="/images/top_btn_join.gif" width="56" height="28" border="0" /></a></td>
<td><img src="/images/top_btn_cart.gif" width="56" height="28" border="0" /></td>
<td><img src="/images/top_btn_delivery.gif" width="75" height="28" border="0" /></td>
<td><img src="/images/top_btn_faq.gif" width="36" height="28" border="0" /></td>
<td><img src="/images/top_btn_mypage.gif" width="66" height="28" /></td>
<td><img src="/images/top_btn_favorite.gif" width="59" height="28" border="0" /></td>
</tr>
</table></td>
<td width="249" height="28" style="background-image:url(/images/search_bg.gif); background-repeat:no-repeat;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<form id="form1" name="form1" method="post" action="">
<tr>
<td width="75"> </td>
<td valign="top">
<input name="textfield" type="text" style="width:110px; height:18px;" />
</td>
<td width="58"><img src="/images/search_btn.gif" width="49" height="19" /></td>
</tr> </form>
</table></td>
</tr>
</table></td>
<td width="7"> </td>
</tr>
<tr>
<td><script language="javascript">ShowFlash('/swf/index_menu.swf', 829, 200)</script>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
|
댓글을 작성하시려면 로그인이 필요합니다.
로그인
댓글 3개
혹시 제가 발견한 부분이 맞다면, index_logo.swf 파일의 경로는 index_menu.swf의 경로 표시방법과 다르게 된것같군요.
혹시 index_logo.swf 파일은 g4[path] 함수로 호출하신게 아닌지,
_common.php는, 그누보드디렉토리안에있는 common.php를 찾아주는 역할을 하는것입니다.
common.php는 가장기본적인 그누보드의 공통부분이 모여있습니다.
예를들어, 쿠키,세션, 기타 공통라이브러리 등이 있습니다^^
그렇기때문에, 경로를 지정하는 문제도. $g4[path] 변수를 로드시키는 common.php를 불러들여야 적용이 됩니다^^