에러 메세지가...;;; 정보
에러 메세지가...;;;본문
'초보의 노프레임 무조건 따라하기'를 보고 헤드를 작업해봤습니다.
디자인이랑 페이지 나누는건 제가 디자인한 도안으로 했습니다.;;;
head.php를 작업하고 되는지 테스트하니
"g4_path 변수가 선언되지 않았습니다. ja/wrest.js"
라는 오류메세지가 뜹니다.
아래는 제가 작업한 head.php의 <head></head>입니다.
뭐가 문제인지 답변부탁드립니다!!
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>축구에이전트회사 KBF SPORTS </title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<?
include_once("./_common.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"); //설문삽입시
$g4['title'] = "";
include_once("./_head.php");
?>
<script type="text/JavaScript">
<!--
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;
}
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title>축구에이전트회사 KBF SPORTS </title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style>
<?
include_once("./_common.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"); //설문삽입시
$g4['title'] = "";
include_once("./_head.php");
?>
<script type="text/JavaScript">
<!--
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_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];}}
}
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_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;
}
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>
</head>
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>
</head>
댓글 전체
> "g4_path 변수가 선언되지 않았습니다. ja/wrest.js"
/js/wrest.js는 tail.sub.php에서 연결되어 있습니다.
특정페이지에서 g4를 정상적으로 구동시키려면,
head.sub.php, tail.sub.php는 필수적으로 기재되어야 합니다.
즉, 다음과 같이...
<?
include_once("$g4[path]/head.sub.php");
?>
내용...
<?
include_once("$g4[path]/tail.sub.php");
?>
/js/wrest.js는 tail.sub.php에서 연결되어 있습니다.
특정페이지에서 g4를 정상적으로 구동시키려면,
head.sub.php, tail.sub.php는 필수적으로 기재되어야 합니다.
즉, 다음과 같이...
<?
include_once("$g4[path]/head.sub.php");
?>
내용...
<?
include_once("$g4[path]/tail.sub.php");
?>
죄송한데 php를 잘 몰라서 좀 더 쉽게 설명 해주시면 안될까요^^;;
> '초보의 노프레임 무조건 따라하기'를 보고 헤드를 작업해봤습니다.
직접 작업하셨다는 의미로 받아 들여지기에 다음 링크를 참조해 보시기 바랍니다.
sir.co.kr/manual/youngcart4/?man=page.htm
링크된 내용은 본인이 직접 $g4[path] 또는 $g4_path라는 변수파악 및 경로를 이해해야 할 뿐,
설명으로 되기에는 한계가 있다고 봅니다.
작업하시던 내용은 백업해 놓고,
타 유저들께서 공개해 주신 head.php나 tail.php를 참조해 보시는 것도 도움이 될 것 같습니다.
검색 키워드 : head.php, tail.php 등
직접 작업하셨다는 의미로 받아 들여지기에 다음 링크를 참조해 보시기 바랍니다.
sir.co.kr/manual/youngcart4/?man=page.htm
링크된 내용은 본인이 직접 $g4[path] 또는 $g4_path라는 변수파악 및 경로를 이해해야 할 뿐,
설명으로 되기에는 한계가 있다고 봅니다.
작업하시던 내용은 백업해 놓고,
타 유저들께서 공개해 주신 head.php나 tail.php를 참조해 보시는 것도 도움이 될 것 같습니다.
검색 키워드 : head.php, tail.php 등