묻고답하기

최근게시물 누르려 할때쯤
상태표시줄에 삼각형 경고창 뜨고.. 그걸 누르니
---------------------------------------------------------------
줄:414
문자:2
오류:'parent.main.location'은(는) null이거나 개체가 아닙니다.
코드:0
URL:http://kevinkangkr.akachan.pe.kr/ggmain.php
----------------------------------------------------------------
라고 떠요.
원래 ggmain.htm 인데 php로 바꿔도 그렇고.. ;
어떻게 해야 되죠??
뭐가 뭔지 하나도 모르겠어요. 꼭좀 가르쳐주세요.
제가 보기에는 최근 게시물 php 내용에 오류가 있는것 같은데...
그리고 오류가 난 최근게시물 소스 입니다.
아래에 보시면 parent.main.location 라는 함수값이 보이긴 한데..
뭐가 빠져 있는지... 누르면 느낌표 오류가 뜨고 해요;;
꼭좀 알려주세요. 어떻게 해결해야 할지를..
---------------------------------------------------------------
<html>
<head>
<title>GG</title>
<body bgcolor="#666666">
<table border="1" width=100% height=0 cellspacing="0" bgcolor="#333333" bordercolordark="#666666" bordercolorlight="black">
<tr>
        <td bgcolor="#333333">
                <font face="Tahoma"><span style="font-size:9pt;">[title]</span></font>
        </td>
</tr>
</table>

<font face="Tahoma"><span style="font-size:9pt;"><!-- 최근글 목록이 나오는 부분 -->
</span></font><table border=0 width=100% height=0 cellspacing=0 cellpadding=2>
<td><font face="Tahoma"><span style="font-size:8pt;">[loop]</span></font></td>

<tr>
        <td id="idname" valign="middle" style="border: 1 solid #666666" onmouseover="mouseOnTD(this);" onmouseout="defaultStatus();" onClick="ClickOnTD(this,'주소');"><font face="Tahoma"><span style="font-size:9pt;"><img src=[dir]bul.gif border=0 align=absmiddle>  </span><span style="font-size:8pt;">[subject]</span><span style="font-size:9pt;">
        </span></font><span style="font-size:5pt;"><font face="Tahoma">//[date]</font></span></td>
</tr>
<td><font face="Tahoma"><span style="font-size:8pt;">[/loop]</span></font></td>

</table>
<!--Htt://tipy.ontipy.com
제로보드 기본스킨 수정,마지막 수정일 2002년 6월1일
MSN:tipy@ontipy.com-->
<style>
BODY,TD,SELECT,input,DIV,form,TEXTAREA,center,option,pre,blockquote {font-size:9pt; font-family:굴림;color:white}

A:link {font-family:굴림;font-size:9pt;color:white;text-decoration:none;}
A:visited {font-family:굴림;font-size:9pt;color:white;text-decoration:none;}
A:active {font-family:굴림;font-size:9pt;color:white;text-decoration:none;}
A:hover {font-family:굴림;font-size:9pt;color:FF9933;text-decoration:underline;}

.head {border:solid 1 black;font-family:굴림;font-size:9pt;color:white}
.textarea {border:solid 1;font-family:굴림;font-size:9pt;color:white}
.input{border:solid 1;font-family:굴림;font-size:9pt;color:white}
.submit {border:solid 0;font-family:굴림;font-size:9pt;color:white}

.titlegungseoche{font-family:궁서;font-size:12pt;color:white

IMG {border: none;}
</style>
<script language="javascript">
<!--
function defaultStatus(){
        var lec = document.all.idname;  // idname은 링크 테이블에서의 idname과 동일
        for (var i=0;i<lec.length;i++){
                document.all.idname[i].style.border = "1 solid #666666";
                document.all.idname[i].style.backgroundColor = "#666666";
        }
}

function mouseOnTD(obj){
        obj.style.border = "1 solid black";
        obj.style.backgroundColor = "333333";
        obj.style.cursor = "hand";
}

function ClickOnTD(obj, page){
        obj.style.border = "1 solid #666666";
        obj.style.backgroundColor = "#666666";
        obj.style.cursor = "hand";
        parent.main.location.href= page;
}
//-->
</script>
<!-- 상단의 타이틀 -->