오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 : www.gcf.kr
"인터넷옵션/고급" 에서 모든스크립트오류표시에 체크하면 스크립트 오류를 알수있어서 체크를 했는데 메인화면 로딩중에 위와같은 오류가 3개가 연속으로 뜹니다. 첫창을 닫으면 2번째창이 뜨고 닫으면 3번째창이뜨고...순서대로 뜹니다.221줄밖에 없는데 메세지는 321, 534,578 줄이라고 하는데 있지도 않는 줄에 왜 오류메세지가 뜰까요???
오류메세지대로 줄찾으면 없어요 이유를 모르겠어요...혹시 아신다면 부탁드립니다.
==================================================
main.php
<?
$g4_path="../gnuboard4";
include_once("../_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest_ban.lib.php");
include_once("$g4[path]/lib/popup.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
?>
<!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>
<? include "../include/header.php"; ?>
</head>
<body><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center" valign="top" style="background-image:url(../images/common/top_bg.jpg); background-repeat:repeat-x"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="30" align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="258" height="30" align="left" valign="top" style="padding-top:5px"><table >
<tr>
<td style=" margin-top:5px"><a href="../main/main.php" target="_self"><img src="../images/common/top_right_home.jpg" width="29" height="11" border="0" /></a></td>
<td style="padding-left:18px; background-image:url(../images/common/top_line.jpg); background-repeat:no-repeat; background-position: 9px 5px"><a href="/sub_etc/read.php"><img src="../images/common/top_read.jpg" width="38" height="11" /></a></td>
<td style="padding-left:4px"><a href="/sub_etc/read.php"><img src="../images/common/top_go.jpg" width="31" height="13" /></a></td>
<td><?
// 사용법 popup("스킨명", 테이블명, "분류명");
echo popup("basic", popup, "prod");
?></td>
<td> </td>
</tr>
</table></td>
<td width="400" height="11" align="center" valign="top" style="padding-top:9px; font-family:'돋움'; font-size:11px; color:#999""><marquee direction="left" scrollamount="2" scrolldelay="100" width="400">"배우고 확신한 일에 거하라"(딤후3:14)</marquee></td>
<td width="322" align="right" valign="top"><?=outlogin("lovesam_login"); // 외부 로그인 ?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="158" align="center" valign="top"><script>flash("../swf/navi.swf","menu","100%","158","transparent")</script></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="264"align="center" valign="top" style="padding-bottom:10px"><table width="980" border="1px" solid bordercolor="#CCCCCC" cellspacing="0" cellpadding="0">
<tr>
<td width="530" height="100%" align="left" valign="top"><? echo latest("dp_slider2", 'main_visual', 4, 70); ?></td>
<td align="center" valign="top"><table>
<tr>
<td height="262" style="border:1px #f00 solid"><table>
<tr>
<td width="200"><table width="200" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="30" align="center" valign="top" style="padding-top:5px; border-bottom:2px #f00 solid"><table border="0">
<tr>
<td width="100%" height="20" align="center" valign="top" style="font-family: '돋움'; font-size:16px; color: #333; font-weight:bold;">Hot & Best 게시판</td>
</tr>
</table></td>
</tr>
<tr>
<td width="200" height="213" align="center" valign="top" style="padding-top:5px"><table border="0">
<tr>
<td width="100%" align="left" valign="top"><? echo latest("fr.best.simple","notice",10,25);?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td align="center" valign="top"><table width="170" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><?= random_latest("yugi_banner", b3, 4, 30)?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="198" align="center" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="165" align="center" valign="top"><table width="980" border="0">
<tr>
<td width="810" height="165" align="center" valign="top" style=" padding-top:5px; border:1px #CCC solid"><table>
<tr>
<td width="100%"><?
//----------------------------------------------
//한번만 넣어 주시면 됩니다
$skinname="gallery_latest" ;
?>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/latest.skin.js"></script>
<?
//1
//var easing_arr = new Array("swing" , "easeInQuad " , "easeOutQuad" , "easeInOutQuad" , "easeInCubic" , "easeOutCubic" , "easeInOutCubic" , "easeInQuart" , "easeOutQuart" , "easeInOutQuart" , "easeInQuint" , "easeOutQuint" , "easeInOutQuint" , "easeInSine" , "easeOutSine" , "easeInOutSine" , "seaseInExpo" , "easeOutExpo" , "easeInOutExpo" , "easeInCirc" , "easeOutCirc" , " easeInOutCirc" , "easeInElastic" , "easeOutElastic" , "easeInOutElastic" , "easeInBack" , "easeOutBack" , "easeInOutBack", "easeInBounce" , "easeOutBounce" , "easeInOutBounce");
echo "<div style='margin:10px 0;'></div>";
//-----------------------------
$options = array();
$options[f_width]=150; //이미지 넑이 px , default : 60px
$options[f_height]=120; //이미지 높이 px , default : 40px
$options[f_margin_right]=55; //이미지간 간격 px , default : 5px
$options[f_count]=4; //보여줄 이미지수 , default : 3
$options[f_time]=1500; //이동시간 마이크로초 default : 1000 ms
$options[f_time_term]=1000; //멈추고 쉬는 시간 마이크로초 default : 1000 ms
$options[f_arrow]=false; //화살표 여부 //false 화살표 숨김 , true 화살표 보임 , default : false
$options[f_arrow_time]=500; //화살표 버튼 눌렀을때 이동하는 시간 마이크로 초 , default : 400
$options[f_direct] =0; //처음 시작하는 방향 : 0 왼쪽 1. 오른쪽 default : 0
$options[f_arrow_after] =1; //화살표 오버후 이동방향 0 : 눌려진 화살표 방향으로, 1:누르기전 방향으로 default : 0 ;
$options[f_arrow_left]="left_arrow.gif"; //왼쪽화살표 //스킨안 img 폴더에 이미지를 넣고 이름을 변경한다 , defalult : left_arrow.gif
$options[f_arrow_right]="right_arrow.gif"; //오른쪽화살표//스킨안 img 폴더에 이미지를 넣고 이름을 변경한다 , defalult : left_arrow.gif
$options[f_arrow_align]="middle"; //화살표 정렬 top , middle , bottom , defalult : top
$options[f_subject]=true; //제목 여부 true : 보여줌 , false 숨김 , default false;
$options[f_subject_lineheight]=18; //줄높이 단위 : px default : 18px
$options[f_subject_line]= 2; //행수 만약 줄높이가 18이고 행수가 2 이면 제목의 높이는 32px default : 2
$options[f_subject_margintop]=5; //이미지와 제목간의 간격 : default : 5;
$options[f_subject_align]="left"; //제목 정렬 : left , right , center , default : left
$options[easing] = 18; // 0~31 : easing : 이동형태 //default : 0 ;
$options[id_name] = "gallery_latest"; //고유명으로 변경하시면 됩니다 : 없으면 보드명으로 정의
//lastest("스키명","보드명","최신글 숫자" , "글자수" , "롤링고유아이디" , 옵션이름 );
echo latest("gallery_latest", "gallery_latest", 15 , 40 , $options);
?></td>
</tr>
</table></td>
<td width="170" align="center" valign="top" style=" padding-top:15px; border:1px #CCC solid"><a href="http://cafe.daum.net/kyh43" target="_blank"><img src="../images/common/holytours.png" width="170" height="150" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="715" height="900" align="left" valign="top" style="padding-right:15px"><table width="715" height="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom:15px"><table width="715" align="left">
<tr>
<td width="350" height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m1', "s1_total", '3', '40');?></td>
<td width="15"> </td>
<td width="350" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m2', "s2_church", '3', '40');?></td>
</tr>
<tr>
<td width="350" height="15" > </td>
<td width="15"> </td>
<td width="350" height="15" > </td>
</tr>
<tr>
<td height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m3', "s3_opinion", '3', '40');?></td>
<td width="15"> </td>
<td align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m4', "s4_edu", '3', '40');?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="715" height="204px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="350" height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m5', "s5_ngo", '3', '40');?></td>
<td width="15"> </td>
<td align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m6', "s6_life", '3', '40');?></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="250" height="852" align="right" valign="top" style="background-color:#f4f4f4"><table width="250" border="1px" bordercolor="#e0e0e0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_1", "campus_41", 5, 25);?>
</td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_2", "books_64", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_3", "welfare_52", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_4", "mission_51", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_5", "order", 5, 25);?></td>
</tr>
<tr>
<td height="135" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid; padding-top:15px"><? include_once("$g4[path]/word/wise.php"); ?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </tr>
</table>
<table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><? include "../include/footer.php"; ?></td>
</tr>
</table>
</tr>
</table></td>
</tr>
</table>
</tr>
</table>
</body>
</html>
오류 주소 : www.gcf.kr
"인터넷옵션/고급" 에서 모든스크립트오류표시에 체크하면 스크립트 오류를 알수있어서 체크를 했는데 메인화면 로딩중에 위와같은 오류가 3개가 연속으로 뜹니다. 첫창을 닫으면 2번째창이 뜨고 닫으면 3번째창이뜨고...순서대로 뜹니다.221줄밖에 없는데 메세지는 321, 534,578 줄이라고 하는데 있지도 않는 줄에 왜 오류메세지가 뜰까요???
오류메세지대로 줄찾으면 없어요 이유를 모르겠어요...혹시 아신다면 부탁드립니다.
==================================================
main.php
<?
$g4_path="../gnuboard4";
include_once("../_common.php");
include_once("$g4[path]/head.sub.php");
include_once("$g4[path]/lib/latest.lib.php");
include_once("$g4[path]/lib/latest_ban.lib.php");
include_once("$g4[path]/lib/popup.lib.php");
include_once("$g4[path]/lib/outlogin.lib.php"); // outlogin() 함수를 사용하여야 하므로 이 프로그램을 포함시킵니다.
?>
<!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>
<? include "../include/header.php"; ?>
</head>
<body><table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="30" align="center" valign="top" style="background-image:url(../images/common/top_bg.jpg); background-repeat:repeat-x"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="30" align="center" valign="top"><table width="980" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="258" height="30" align="left" valign="top" style="padding-top:5px"><table >
<tr>
<td style=" margin-top:5px"><a href="../main/main.php" target="_self"><img src="../images/common/top_right_home.jpg" width="29" height="11" border="0" /></a></td>
<td style="padding-left:18px; background-image:url(../images/common/top_line.jpg); background-repeat:no-repeat; background-position: 9px 5px"><a href="/sub_etc/read.php"><img src="../images/common/top_read.jpg" width="38" height="11" /></a></td>
<td style="padding-left:4px"><a href="/sub_etc/read.php"><img src="../images/common/top_go.jpg" width="31" height="13" /></a></td>
<td><?
// 사용법 popup("스킨명", 테이블명, "분류명");
echo popup("basic", popup, "prod");
?></td>
<td> </td>
</tr>
</table></td>
<td width="400" height="11" align="center" valign="top" style="padding-top:9px; font-family:'돋움'; font-size:11px; color:#999""><marquee direction="left" scrollamount="2" scrolldelay="100" width="400">"배우고 확신한 일에 거하라"(딤후3:14)</marquee></td>
<td width="322" align="right" valign="top"><?=outlogin("lovesam_login"); // 외부 로그인 ?></td>
</tr>
</table></td>
</tr>
<tr>
<td width="100%" height="158" align="center" valign="top"><script>flash("../swf/navi.swf","menu","100%","158","transparent")</script></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%" height="264"align="center" valign="top" style="padding-bottom:10px"><table width="980" border="1px" solid bordercolor="#CCCCCC" cellspacing="0" cellpadding="0">
<tr>
<td width="530" height="100%" align="left" valign="top"><? echo latest("dp_slider2", 'main_visual', 4, 70); ?></td>
<td align="center" valign="top"><table>
<tr>
<td height="262" style="border:1px #f00 solid"><table>
<tr>
<td width="200"><table width="200" height="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="200" height="30" align="center" valign="top" style="padding-top:5px; border-bottom:2px #f00 solid"><table border="0">
<tr>
<td width="100%" height="20" align="center" valign="top" style="font-family: '돋움'; font-size:16px; color: #333; font-weight:bold;">Hot & Best 게시판</td>
</tr>
</table></td>
</tr>
<tr>
<td width="200" height="213" align="center" valign="top" style="padding-top:5px"><table border="0">
<tr>
<td width="100%" align="left" valign="top"><? echo latest("fr.best.simple","notice",10,25);?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td align="center" valign="top"><table width="170" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="100%"><?= random_latest("yugi_banner", b3, 4, 30)?></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="198" align="center" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="165" align="center" valign="top"><table width="980" border="0">
<tr>
<td width="810" height="165" align="center" valign="top" style=" padding-top:5px; border:1px #CCC solid"><table>
<tr>
<td width="100%"><?
//----------------------------------------------
//한번만 넣어 주시면 됩니다
$skinname="gallery_latest" ;
?>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="<?="$g4[path]/skin/latest/$skinname"?>/latest.skin.js"></script>
<?
//1
//var easing_arr = new Array("swing" , "easeInQuad " , "easeOutQuad" , "easeInOutQuad" , "easeInCubic" , "easeOutCubic" , "easeInOutCubic" , "easeInQuart" , "easeOutQuart" , "easeInOutQuart" , "easeInQuint" , "easeOutQuint" , "easeInOutQuint" , "easeInSine" , "easeOutSine" , "easeInOutSine" , "seaseInExpo" , "easeOutExpo" , "easeInOutExpo" , "easeInCirc" , "easeOutCirc" , " easeInOutCirc" , "easeInElastic" , "easeOutElastic" , "easeInOutElastic" , "easeInBack" , "easeOutBack" , "easeInOutBack", "easeInBounce" , "easeOutBounce" , "easeInOutBounce");
echo "<div style='margin:10px 0;'></div>";
//-----------------------------
$options = array();
$options[f_width]=150; //이미지 넑이 px , default : 60px
$options[f_height]=120; //이미지 높이 px , default : 40px
$options[f_margin_right]=55; //이미지간 간격 px , default : 5px
$options[f_count]=4; //보여줄 이미지수 , default : 3
$options[f_time]=1500; //이동시간 마이크로초 default : 1000 ms
$options[f_time_term]=1000; //멈추고 쉬는 시간 마이크로초 default : 1000 ms
$options[f_arrow]=false; //화살표 여부 //false 화살표 숨김 , true 화살표 보임 , default : false
$options[f_arrow_time]=500; //화살표 버튼 눌렀을때 이동하는 시간 마이크로 초 , default : 400
$options[f_direct] =0; //처음 시작하는 방향 : 0 왼쪽 1. 오른쪽 default : 0
$options[f_arrow_after] =1; //화살표 오버후 이동방향 0 : 눌려진 화살표 방향으로, 1:누르기전 방향으로 default : 0 ;
$options[f_arrow_left]="left_arrow.gif"; //왼쪽화살표 //스킨안 img 폴더에 이미지를 넣고 이름을 변경한다 , defalult : left_arrow.gif
$options[f_arrow_right]="right_arrow.gif"; //오른쪽화살표//스킨안 img 폴더에 이미지를 넣고 이름을 변경한다 , defalult : left_arrow.gif
$options[f_arrow_align]="middle"; //화살표 정렬 top , middle , bottom , defalult : top
$options[f_subject]=true; //제목 여부 true : 보여줌 , false 숨김 , default false;
$options[f_subject_lineheight]=18; //줄높이 단위 : px default : 18px
$options[f_subject_line]= 2; //행수 만약 줄높이가 18이고 행수가 2 이면 제목의 높이는 32px default : 2
$options[f_subject_margintop]=5; //이미지와 제목간의 간격 : default : 5;
$options[f_subject_align]="left"; //제목 정렬 : left , right , center , default : left
$options[easing] = 18; // 0~31 : easing : 이동형태 //default : 0 ;
$options[id_name] = "gallery_latest"; //고유명으로 변경하시면 됩니다 : 없으면 보드명으로 정의
//lastest("스키명","보드명","최신글 숫자" , "글자수" , "롤링고유아이디" , 옵션이름 );
echo latest("gallery_latest", "gallery_latest", 15 , 40 , $options);
?></td>
</tr>
</table></td>
<td width="170" align="center" valign="top" style=" padding-top:15px; border:1px #CCC solid"><a href="http://cafe.daum.net/kyh43" target="_blank"><img src="../images/common/holytours.png" width="170" height="150" /></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="715" height="900" align="left" valign="top" style="padding-right:15px"><table width="715" height="190" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding-bottom:15px"><table width="715" align="left">
<tr>
<td width="350" height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m1', "s1_total", '3', '40');?></td>
<td width="15"> </td>
<td width="350" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m2', "s2_church", '3', '40');?></td>
</tr>
<tr>
<td width="350" height="15" > </td>
<td width="15"> </td>
<td width="350" height="15" > </td>
</tr>
<tr>
<td height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m3', "s3_opinion", '3', '40');?></td>
<td width="15"> </td>
<td align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m4', "s4_edu", '3', '40');?></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="715" height="204px" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="350" height="204" align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m5', "s5_ngo", '3', '40');?></td>
<td width="15"> </td>
<td align="left" valign="top" style="background-color: #ebf5fc; border:1px #e0e0e0"><?=latest_group('latest_morningWebU_web_m6', "s6_life", '3', '40');?></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
<td width="250" height="852" align="right" valign="top" style="background-color:#f4f4f4"><table width="250" border="1px" bordercolor="#e0e0e0" cellpadding="0" cellspacing="0">
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_1", "campus_41", 5, 25);?>
</td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_2", "books_64", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_3", "welfare_52", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_4", "mission_51", 5, 25);?></td>
</tr>
<tr>
<td width="100%" height="150" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid"><?=latest("simple_mix_5", "order", 5, 25);?></td>
</tr>
<tr>
<td height="135" align="left" valign="top" style="border-bottom: 1px #e0e0e0 solid; padding-top:15px"><? include_once("$g4[path]/word/wise.php"); ?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table> </tr>
</table>
<table width="980" border="0" cellspacing="0" cellpadding="0">
<tr>
<td align="center" valign="top"><? include "../include/footer.php"; ?></td>
</tr>
</table>
</tr>
</table></td>
</tr>
</table>
</tr>
</table>
</body>
</html>
댓글 6개
우선 해당 오류는 해당 실행할 대상이 되는 오브젝트가 정상적으로 찾지 못해 생기는 오류현상입니다.
우선 첫번째 오류만 보더라도 객체를 찾아보면 후반부에 나오는데요.
예를 들면 이런식이죠.
<script type="text/javascript">
// 대상A를 찾아 노출시키지 말고 숨김처리로 바꾸어라.
</script>
~소스 블라블라~
<div id="대상A">
숨겨야할 대상
</div>
현재 문의하신 분의 사이트 오류 중 한 부분이 위와 같습니다.
즉, 대상이 아직 소스상에 노출되기 이전에 초반에 스크립트에 대상을 찾아 숨김처리하고자 하니,
대상을 찾지 못해 생기는 오류입니다.
대상이 아예 없는 것은 아니고, 스크립트가 실행되고 난 이후에야 해당 대상 소스가 마크업되어 있어,
일종의 시간차인 셈이지요.
해결책은 해당 스크립트를 onload 되고 난 이후 실행되도록 처리하시거나,
해당 스크립트를 대상이 나오고 난 이후로 옮겨심는(!) 방식으로 하셔도 될 것 같습니다 :)
우선 첫번째 오류만 보더라도 객체를 찾아보면 후반부에 나오는데요.
예를 들면 이런식이죠.
<script type="text/javascript">
// 대상A를 찾아 노출시키지 말고 숨김처리로 바꾸어라.
</script>
~소스 블라블라~
<div id="대상A">
숨겨야할 대상
</div>
현재 문의하신 분의 사이트 오류 중 한 부분이 위와 같습니다.
즉, 대상이 아직 소스상에 노출되기 이전에 초반에 스크립트에 대상을 찾아 숨김처리하고자 하니,
대상을 찾지 못해 생기는 오류입니다.
대상이 아예 없는 것은 아니고, 스크립트가 실행되고 난 이후에야 해당 대상 소스가 마크업되어 있어,
일종의 시간차인 셈이지요.
해결책은 해당 스크립트를 onload 되고 난 이후 실행되도록 처리하시거나,
해당 스크립트를 대상이 나오고 난 이후로 옮겨심는(!) 방식으로 하셔도 될 것 같습니다 :)
위 오류가 나는 이유는
스크립트 부분중
for (j=0;j<3;j++){
if ( cookiedata.indexOf("divpop2_prod"+j+"=done") < 0 ) {
document.all['divpop2_prod'+j].style.visibility = "visible";
}
else {
document.all['divpop2_prod'+j].style.visibility = "hidden";
}
}
이런부분이 있는데 실제 웹페이지에서 봤을때는 divpop2_prod3 번 밖에 나오지 않아 나오는 오류입니다.
따라서 반복문 안에서 해당 div 가 있는지를 체크하는 예외부분을 추가로 넣어주셔야 합니다.
for (j=0;j<3;j++){
if (typeof document.all['divpop2_prod'+j] != "undefined") {
if ( cookiedata.indexOf("divpop2_prod"+j+"=done") < 0 ) {
document.all['divpop2_prod'+j].style.visibility = "visible";
}
else {
document.all['divpop2_prod'+j].style.visibility = "hidden";
}
}
}
이런식으로 수정해보세요
ps. 위와같이 반복되는 부분이 다수 존재하므로 찾아가면서 수정하셔야 합니다.
스크립트 부분중
for (j=0;j<3;j++){
if ( cookiedata.indexOf("divpop2_prod"+j+"=done") < 0 ) {
document.all['divpop2_prod'+j].style.visibility = "visible";
}
else {
document.all['divpop2_prod'+j].style.visibility = "hidden";
}
}
이런부분이 있는데 실제 웹페이지에서 봤을때는 divpop2_prod3 번 밖에 나오지 않아 나오는 오류입니다.
따라서 반복문 안에서 해당 div 가 있는지를 체크하는 예외부분을 추가로 넣어주셔야 합니다.
for (j=0;j<3;j++){
if (typeof document.all['divpop2_prod'+j] != "undefined") {
if ( cookiedata.indexOf("divpop2_prod"+j+"=done") < 0 ) {
document.all['divpop2_prod'+j].style.visibility = "visible";
}
else {
document.all['divpop2_prod'+j].style.visibility = "hidden";
}
}
}
이런식으로 수정해보세요
ps. 위와같이 반복되는 부분이 다수 존재하므로 찾아가면서 수정하셔야 합니다.
게시글 목록
| 번호 | 제목 |
|---|---|
| 284508 | |
| 284499 | |
| 284492 | |
| 284490 | |
| 284484 | |
| 284481 | |
| 284478 | |
| 284476 | |
| 284474 | |
| 284472 | |
| 284470 | |
| 284458 | |
| 284457 | |
| 284454 | |
| 284453 | |
| 284447 | |
| 284446 | |
| 284444 | |
| 284441 | |
| 284440 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기