묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
작업을 마쳤으나 페이지에 오류가 있습니다.
2004.08.27 17:08
홈페이지 중간에, 새로고침을 할때마다 사진이 바뀌는 스크립트를 집어 넣었는데,
평소에 홈페이지 열때는 멀쩡하다가,
게시물을 클릭만 하면, 그 바뀌는 사진이 아예 없어지면서,
상태표시줄에 작업을 마쳤으나 페이지에 오류가 있습니다. 라는 메세지가 뜹니다.
저걸 제로보드에서부터 앞뒤로 나눠서, head와 foot으로 올리는 노프레임 홈페이지인데요,
예전에 스크롤을 따라 톱이라는 글자가 쭈욱- 내려가다가 클릭하면 맨 위로 가는 스크립트(;)를
설치했을 때도, 게시물을 볼때만은 오류가 있습니다. 라는 메세지가 뜨면서,
그게 가동이 안되서 결국 삭제한 적이 있거든요.
그런데 이번엔 불필요한 스크립트가 아니라서, 삭제할 수도 없고,
제발 알려주세요.ㅠ_ㅠ
이 밑에서부터가 제 홈의 소스입니다.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>언제나유쾌하게,칸빠이:D</title>
<style type="text/css">
<!--
A:link {text-decoration:none}
A:visited {text-decoration:none}
A:active {text-decoration:none}
A:hover {text-decoration:none}
-->
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script language="JavaScript"><!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes'+ '+ ' : 'no';
menubar_str = menubar ? 'yes'+ ' : '+ 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';'+ ', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+'+ ',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script></head>
<body bgcolor="white" text="black" link="none" vlink="none" alink="none" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="900" cellpadding="0" cellspacing="0">
<tr>
<td width="15"> </td>
<td width="731"><font size="2" face="돋움"> </font><font size="2" face="돋움" color="#999999"> </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=fanfix" onfocus="this.blur()"><span style="background-color:white;"><font size="2" face="돋움" color="#999999">소설</font></span></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=board" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">잡동사니</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=link" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">링크</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=guest" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">게스트</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=master" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">마스터</font></a><font size="2" face="돋움" color="#999999"> | 히스토리</font></td>
<td width="5"> </td>
<td width="149"> </td>
</tr>
<tr>
<td width="15" height="330"> </td>
<td width="731" height="330"><img src="http://kiyo.ivyro.net/bbs/html/image/main.jpg" width="730" height="330" border="0"></td>
<td width="5" height="330"> </td>
<td width="149" height="330"><img src="http://kiyo.ivyro.net/bbs/html/image/menu.jpg" width="149" height="330" border="0" usemap="#ImageMap1"></td>
</tr>
<tr>
<td width="15" height="3"></td>
<td width="731" height="3"></td>
<td width="5" height="3"></td>
<td width="149" height="3"></td>
</tr>
<tr>
<td width="15" height="58"></td>
<td width="731" height="217" rowspan="3" valign="top"> <dl>
<dt>제로보드</dt>
</dl>
</td>
<td width="5" height="58"> </td>
<td width="149" height="260" valign="top" rowspan="4">
<p><img src="kanpai/event.jpg" width="149" height="126" border="0" usemap="#ImageMap2">
<script language="JavaScript">
<!--
var list= new Array()
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/0.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/1.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/2.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<img src='"+list[j]+"'>");
//-->
</script></p>
</td>
</tr>
<tr>
<td width="15" height="42"></td>
<td width="5" height="42"></td>
</tr>
<tr>
<td width="15" height="114"> </td>
<td width="5" height="114"> </td>
</tr>
<tr>
<td width="15" height="36"> </td>
<td width="731" height="36"><img src="http://kiyo.ivyro.net/bbs/html/image/foot.jpg" width="730" height="43" border="0" usemap="#ImageMap3"> </td>
<td width="5" height="36"> </td>
</tr>
</table>
<map name="ImageMap1">
<area shape="rect" coords="9, 19, 135, 53" href="http://kiyo.ivyro.net/bbs/zboard.php?id=image" onfocus="this.blur()">
<area shape="rect" coords="10, 73, 136, 104" href="http://kiyo.ivyro.net/bbs/zboard.php?id=capture" onfocus="this.blur()">
<area shape="rect" coords="10, 121, 135, 155" href="http://kiyo.ivyro.net/bbs/zboard.php?id=skin" onfocus="this.blur()">
<area shape="rect" coords="11, 169, 135, 206" href="http://kiyo.ivyro.net/bbs/zboard.php?id=pds" onfocus="this.blur()">
<area shape="rect" coords="12, 222, 135, 257" href="http://kiyo.ivyro.net/bbs/zboard.php?id=information" onfocus="this.blur()">
<area shape="rect" coords="12, 270, 135, 308" href="http://kiyo.ivyro.net/bbs/zboard.php?id=main" onfocus="this.blur()">
</map>
<map name="ImageMap2">
<area shape="rect" coords="2, 2, 148, 63" href="javascript:na_open_window('win', 'http://kiyo.ivyro.net/bbs/zboard.php?id=music', 0, 0, 350, 500, 0, 0, 0, 0, 0);" target="_self" onfocus="this.blur()">
<area shape="rect" coords="2, 63, 148, 125" href="javascript:na_open_window('win', 'http://kiyo.ivyro.net/bbs/zboard.php?id=present', 0, 0, 350, 500, 0, 0, 0, 0, 0);" target="_self" onfocus="this.blur()"></map>
<map name="ImageMap3">
<area shape="circle" coords="679, 22, 7" href="#" onfocus="this.blur()">
</map>
</body>
</html>
평소에 홈페이지 열때는 멀쩡하다가,
게시물을 클릭만 하면, 그 바뀌는 사진이 아예 없어지면서,
상태표시줄에 작업을 마쳤으나 페이지에 오류가 있습니다. 라는 메세지가 뜹니다.
저걸 제로보드에서부터 앞뒤로 나눠서, head와 foot으로 올리는 노프레임 홈페이지인데요,
예전에 스크롤을 따라 톱이라는 글자가 쭈욱- 내려가다가 클릭하면 맨 위로 가는 스크립트(;)를
설치했을 때도, 게시물을 볼때만은 오류가 있습니다. 라는 메세지가 뜨면서,
그게 가동이 안되서 결국 삭제한 적이 있거든요.
그런데 이번엔 불필요한 스크립트가 아니라서, 삭제할 수도 없고,
제발 알려주세요.ㅠ_ㅠ
이 밑에서부터가 제 홈의 소스입니다.
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=euc-kr">
<title>언제나유쾌하게,칸빠이:D</title>
<style type="text/css">
<!--
A:link {text-decoration:none}
A:visited {text-decoration:none}
A:active {text-decoration:none}
A:hover {text-decoration:none}
-->
</style>
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
<script language="JavaScript"><!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar ? 'yes'+ '+ ' : 'no';
menubar_str = menubar ? 'yes'+ ' : '+ 'no';
statusbar_str = statusbar ? 'yes' : 'no';
scrollbar_str = scrollbar ? 'yes' : 'no';
resizable_str = resizable ? 'yes' : 'no';
cookie_str = document.cookie;
cookie_str.toString();
pos_start = cookie_str.indexOf(name);
pos_start = cookie_str.indexOf('=', pos_start);
pos_end = cookie_str.indexOf(';'+ ', pos_start);
if (pos_end <= 0) pos_end = cookie_str.length;
cookie_val = cookie_str.substring(pos_start + 1, pos_end);
if (cookie_val == "done")
return;
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+'+ ',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
</script></head>
<body bgcolor="white" text="black" link="none" vlink="none" alink="none" leftmargin="0" marginwidth="0" topmargin="0" marginheight="0">
<table width="900" cellpadding="0" cellspacing="0">
<tr>
<td width="15"> </td>
<td width="731"><font size="2" face="돋움"> </font><font size="2" face="돋움" color="#999999"> </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=fanfix" onfocus="this.blur()"><span style="background-color:white;"><font size="2" face="돋움" color="#999999">소설</font></span></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=board" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">잡동사니</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=link" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">링크</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=guest" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">게스트</font></a><font size="2" face="돋움" color="#999999"> | </font><a href="http://kiyo.ivyro.net/bbs/zboard.php?id=master" onfocus="this.blur()"><font size="2" face="돋움" color="#999999">마스터</font></a><font size="2" face="돋움" color="#999999"> | 히스토리</font></td>
<td width="5"> </td>
<td width="149"> </td>
</tr>
<tr>
<td width="15" height="330"> </td>
<td width="731" height="330"><img src="http://kiyo.ivyro.net/bbs/html/image/main.jpg" width="730" height="330" border="0"></td>
<td width="5" height="330"> </td>
<td width="149" height="330"><img src="http://kiyo.ivyro.net/bbs/html/image/menu.jpg" width="149" height="330" border="0" usemap="#ImageMap1"></td>
</tr>
<tr>
<td width="15" height="3"></td>
<td width="731" height="3"></td>
<td width="5" height="3"></td>
<td width="149" height="3"></td>
</tr>
<tr>
<td width="15" height="58"></td>
<td width="731" height="217" rowspan="3" valign="top"> <dl>
<dt>제로보드</dt>
</dl>
</td>
<td width="5" height="58"> </td>
<td width="149" height="260" valign="top" rowspan="4">
<p><img src="kanpai/event.jpg" width="149" height="126" border="0" usemap="#ImageMap2">
<script language="JavaScript">
<!--
var list= new Array()
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/0.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/1.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/2.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<img src='"+list[j]+"'>");
//-->
</script></p>
</td>
</tr>
<tr>
<td width="15" height="42"></td>
<td width="5" height="42"></td>
</tr>
<tr>
<td width="15" height="114"> </td>
<td width="5" height="114"> </td>
</tr>
<tr>
<td width="15" height="36"> </td>
<td width="731" height="36"><img src="http://kiyo.ivyro.net/bbs/html/image/foot.jpg" width="730" height="43" border="0" usemap="#ImageMap3"> </td>
<td width="5" height="36"> </td>
</tr>
</table>
<map name="ImageMap1">
<area shape="rect" coords="9, 19, 135, 53" href="http://kiyo.ivyro.net/bbs/zboard.php?id=image" onfocus="this.blur()">
<area shape="rect" coords="10, 73, 136, 104" href="http://kiyo.ivyro.net/bbs/zboard.php?id=capture" onfocus="this.blur()">
<area shape="rect" coords="10, 121, 135, 155" href="http://kiyo.ivyro.net/bbs/zboard.php?id=skin" onfocus="this.blur()">
<area shape="rect" coords="11, 169, 135, 206" href="http://kiyo.ivyro.net/bbs/zboard.php?id=pds" onfocus="this.blur()">
<area shape="rect" coords="12, 222, 135, 257" href="http://kiyo.ivyro.net/bbs/zboard.php?id=information" onfocus="this.blur()">
<area shape="rect" coords="12, 270, 135, 308" href="http://kiyo.ivyro.net/bbs/zboard.php?id=main" onfocus="this.blur()">
</map>
<map name="ImageMap2">
<area shape="rect" coords="2, 2, 148, 63" href="javascript:na_open_window('win', 'http://kiyo.ivyro.net/bbs/zboard.php?id=music', 0, 0, 350, 500, 0, 0, 0, 0, 0);" target="_self" onfocus="this.blur()">
<area shape="rect" coords="2, 63, 148, 125" href="javascript:na_open_window('win', 'http://kiyo.ivyro.net/bbs/zboard.php?id=present', 0, 0, 350, 500, 0, 0, 0, 0, 0);" target="_self" onfocus="this.blur()"></map>
<map name="ImageMap3">
<area shape="circle" coords="679, 22, 7" href="#" onfocus="this.blur()">
</map>
</body>
</html>
댓글 2
-
이탁룡
2004.08.28 09:52
-
cometwith
2004.08.30 00:18
답변감사합니다. 그런데 그렇게 해봤는데, 이번엔 아예 엑스박스가 뜨면서, 게시판에서든, 글에서든, 아예 안되네요.T-T
있습니다. [도구]-[인터넷옵션]-[고급]-[모든 스크립트 오류에 관련된 알림 표시] 에 체크를
하신후 사이트를 다시 새로고침 해보면 에러창이 뜨게 될것입니다.
몇째줄에서 에러가 난다고...
님의 홈피를 이 상태로 디버그 해보니깐 694 라인에서 에러가 난다고 표시가 되기에
찾아가 보니 다음과 같이
<script language="JavaScript">
<!--
var list= new Array()
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/0.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/1.jpg';
list[list.length]='http://kiyo.ivyro.net/bbs/html/image/2.jpg';
j=parseInt(Math.random()*list.length);
j=(isNaN(j))?0:j;
document.write("<img src='"+list[j]+"'>");
//-->
</script>
위 항목중 밑에 document.write("<imgsrc='"+list[j]+"'>"); 여기서 에러가 나더군요.
=======================================
document.write("<img src='"+list[j]+"'>");
=======================================
위 구문을
=======================================
document.write("<img src='+list[j]+'>");
========================================
위와 같이 고치고 해보세요.