head.php 경로 설정 정보
head.php 경로 설정본문
head.php경로 설정에관한 질문입니다.
메인에서 head.php인쿠르드할때 상단에
include_once("$g4[path]/head.php");이런식으로하면
플래쉬가 전부 나오지않습니다
<? include"head.php";?>이렇게 하면 나오구요
head.php는 지금 새로 만든 페이지구요 기존에 있는것은 쓰지 않구요
<? include"head.php";?>이렇게 하면 메인에서는 나오는데 다른페이지로 넘어가면
페이지가 꺠지거든요.
이럴땐 어떻게 해야되는지요...
댓글 전체
head.php에서 플래시가 들어간 내용을 확인하시고 경로를 수정하셔야 하겠는데요.
기존 헤더파일 유지하시고 플래시 파일을 절대경로로 사용하시면 문제 해결됩니다.
메인에서는 절대경로를 쓰면 되는데 페이지를 넘어가면 절대경로로 해도 안잡히는데요....
이건 어떻게해야되는지요??
이건 어떻게해야되는지요??
절대경로는 변하지 않는데요.
소스 내용을 봐야 잘못된 부분을 알수 있을 것 같애요.
소스 내용을 봐야 잘못된 부분을 알수 있을 것 같애요.
head.php파일입니다 플래쉬에 절대경로 걸었는데
게시판으로 넘어가면 플래쉬가 안나옵니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 900;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<script language="javascript" src="embeded.js" type="text/javascript"></script>
<table width="996" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" height="227" valign="top" style="background-image:url(http://www.nall.co.kr/images/top_logo_bg.jpg); background-repeat:no-repeat;">
<script language="javascript">ShowFlash('http://www.nall.co.kr/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('http://www.nall.co.kr/swf/index_menu.swf', 829, 200)</script>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
게시판으로 넘어가면 플래쉬가 안나옵니다
<?
if (!defined("_GNUBOARD_")) exit; // 개별 페이지 접근 불가
include_once("$g4[path]/head.sub.php");
//print_r2(get_defined_constants());
// 사용자 화면 상단과 좌측을 담당하는 페이지입니다.
// 상단, 좌측 화면을 꾸미려면 이 파일을 수정합니다.
$table_width = 900;
//print_r2($g4);
//$dir = dirname($HTTP_SERVER_VARS["PHP_SELF"]);
?>
<script language="javascript" src="embeded.js" type="text/javascript"></script>
<table width="996" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="169" height="227" valign="top" style="background-image:url(http://www.nall.co.kr/images/top_logo_bg.jpg); background-repeat:no-repeat;">
<script language="javascript">ShowFlash('http://www.nall.co.kr/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('http://www.nall.co.kr/swf/index_menu.swf', 829, 200)</script>
</td>
<td> </td>
</tr>
</table>
</td>
</tr>
</table>
document.write('<embed src=http://www.nall.co.kr/swf/index_menu.swf width=829 height=200type=application/x-shockwave-flash autostart=true loop=true>') <===이걸루 js파일 하나 만드세요.
그리고 플래시 들어갈 부분에....<script src="<?=$g4[path]?>/js/파일이름.js"></script>넣으세요.
두번째 스크립트는 그누에 js폴더에 "파일이름.js"업로드 했을때 경로 입니다.
그리고 플래시 들어갈 부분에....<script src="<?=$g4[path]?>/js/파일이름.js"></script>넣으세요.
두번째 스크립트는 그누에 js폴더에 "파일이름.js"업로드 했을때 경로 입니다.
js파일을 <script language="javascript">ShowFlash('http://www.nall.co.kr/swf/index_logo.swf', 169, 96)</script>
여기 절대경로 들어가는데 넣는거죠??
여기 절대경로 들어가는데 넣는거죠??
플래시 테두리를 없애기 위해서 하시는것 같은데요....테두리를 없애는 태크는 몇가지 됩니다만 ...여러방법중 공통적인 것은
js파일이 필요하다는 것입니다. js파을을 만들어서 어느 특정위치에 업로드 시키기고 이 js파일을 호출하는 방식입니다.
document.write('<embed src=http://www.nall.co.kr/swf/index_menu.swf width=829 height=200type=application/x-shockwave-flash autostart=true loop=true>') <==이분을 복사하셔서 메모장이나 이런걸로 붙혀넣기 하시고 파일 확장자를 js로 만드세요.
그런 다음 <script src="<?=$g4[path]?>/js/파일이름.js"></script> <==플래시가 보여질 위치에 넣으라는 말입니다.
두번째 스크립트는 그누에서 사용하는 절대경로를 사용하여 js파일을 불러오는 방식입니다.
그러니깐 절대경로는 플래시파일이 위치한 경로가 아니라 js파일의 절대 경로가 되겠죠?
님이 적으신 소스를 보니깐 로고부분과 메뉴부분의 플래시를 삽입하기 위해서 인듯한데요.
이럴경우엔 두개의 js파일이 필요하겠죠?
일명 노가다?방식인데요.ㅎㅎ 함해보시고 안되시면...리플 ㅎㅎ
제 설명이 너무 어려웠나요?? ㅎㅎ
js파일이 필요하다는 것입니다. js파을을 만들어서 어느 특정위치에 업로드 시키기고 이 js파일을 호출하는 방식입니다.
document.write('<embed src=http://www.nall.co.kr/swf/index_menu.swf width=829 height=200type=application/x-shockwave-flash autostart=true loop=true>') <==이분을 복사하셔서 메모장이나 이런걸로 붙혀넣기 하시고 파일 확장자를 js로 만드세요.
그런 다음 <script src="<?=$g4[path]?>/js/파일이름.js"></script> <==플래시가 보여질 위치에 넣으라는 말입니다.
두번째 스크립트는 그누에서 사용하는 절대경로를 사용하여 js파일을 불러오는 방식입니다.
그러니깐 절대경로는 플래시파일이 위치한 경로가 아니라 js파일의 절대 경로가 되겠죠?
님이 적으신 소스를 보니깐 로고부분과 메뉴부분의 플래시를 삽입하기 위해서 인듯한데요.
이럴경우엔 두개의 js파일이 필요하겠죠?
일명 노가다?방식인데요.ㅎㅎ 함해보시고 안되시면...리플 ㅎㅎ
제 설명이 너무 어려웠나요?? ㅎㅎ