묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
잘못된 소스좀 봐주세요.
2003.12.26 20:23
http://obligato.dnip.net/yesiis안녕하세요.
홈페이지를 만들어 봤는데요. 우측 메뉴의 롤오버 기능이 잘못된것 같습니다. 오류메시지가 뜨네요.
왜 그런지 이유를 잘모르겠습니다. 소스를 처음부터 살펴봤지만 오류 뜰만한 곳이 없는데도 그러네요. 아시는분 답변 부탁드립니다.
-----------------------------------우측 메뉴의 소스입니다.
<HTML>
<HEAD>
<TITLE>r_menu</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<!-- ImageReady Preload Script (r_menu.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
r_menu_02_over = newImage("./yesiis/images/r_menu_02-over.gif");
r_menu_03_over = newImage("./yesiis/images/r_menu_03-over.gif");
r_menu_04_r_menu_03_over = newImage("./yesiis/images/r_menu_04-r_menu_03_over.gif");
r_menu_04_over = newImage("./yesiis/images/r_menu_04-over.gif");
r_menu_05_r_menu_04_over = newImage("./yesiis/images/r_menu_05-r_menu_04_over.gif");
r_menu_05_over = newImage("./yesiis/images/r_menu_05-over.gif");
r_menu_06_r_menu_05_over = newImage("./yesiis/images/r_menu_06-r_menu_05_over.gif");
r_menu_06_over = newImage("./yesiis/images/r_menu_06-over.gif");
r_menu_07_r_menu_06_over = newImage("./yesiis/images/r_menu_07-r_menu_06_over.gif");
r_menu_07_over = newImage("./yesiis/images/r_menu_07-over.gif");
r_menu_08_r_menu_07_over = newImage("./yesiis/images/r_menu_08-r_menu_07_over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<!-- ImageReady Slices (r_menu.psd) -->
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td hight=80> </td>
</tr>
<TR>
<TD>
<A HREF="../zboard.php?id=notice"
ONMOUSEOVER="changeImages('r_menu_02', './images/r_menu_02-over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_02', './images/r_menu_02.gif'); return true;" target=bottom>
<IMG NAME="r_menu_02" SRC="./images/r_menu_02.gif" WIDTH=100 HEIGHT=44 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=work"
ONMOUSEOVER="changeImages('r_menu_03', './images/r_menu_03-over.gif', 'r_menu_04', './images/r_menu_04-r_menu_03_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_03', './images/r_menu_03.gif', '+ '+ 'r_menu_04', './images/r_menu_04.gif'); return true;" target=bottom>
<IMG NAME="r_menu_03" SRC="./images/r_menu_03.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=iisstudy"
ONMOUSEOVER="changeImages('r_menu_04', './images/r_menu_04-over.gif', 'r_menu_05', './images/r_menu_05-r_menu_04_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_04', './images/r_menu_04.gif', 'r_menu_05', './images/r_menu_05.gif'+ '); return true;" target=bottom>
<IMG NAME="r_menu_04" SRC="./images/r_menu_04.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=freeboard"
ONMOUSEOVER="changeImages('r_menu_05', './images/r_menu_05-over.gif', '+ 'r_menu_06', './images/r_menu_06-r_menu_05_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_05', './images/r_menu_05.gif', 'r_menu_06', './images/r_menu_06.gif'); return true;" target=bottom>
<IMG NAME="r_menu_05" SRC="./images/r_menu_05.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=guest"
ONMOUSEOVER="changeImages('r_menu_06', './images/r_menu_06-over.gif', 'r_menu_07', './images/r_menu_07-r_menu_06_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_06', './images/r_menu_06.gif', 'r_menu_07', './images/r_menu_07.gif'); return true;" target=bottom>
<IMG NAME="r_menu_06" SRC="./images/r_menu_06.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=link"
ONMOUSEOVER="changeImages('r_menu_07', './images/r_menu_07-over.gif', 'r_menu_08', './images/r_menu_08-r_menu_07_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_07', '+ './images/r_menu_07.gif', 'r_menu_08', './images/r_menu_08.gif'); return true;" target=bottom>
<IMG NAME="r_menu_07" SRC="./images/r_menu_07.gif" WIDTH=100 HEIGHT=44 BORDER=0 ALT=""></A></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
-----------------------
이상입니다.
홈페이지는 개인서버라서 일정시간에만 열립니다. 아래 그림이 뜨면 열립니다.
홈페이지를 만들어 봤는데요. 우측 메뉴의 롤오버 기능이 잘못된것 같습니다. 오류메시지가 뜨네요.
왜 그런지 이유를 잘모르겠습니다. 소스를 처음부터 살펴봤지만 오류 뜰만한 곳이 없는데도 그러네요. 아시는분 답변 부탁드립니다.
-----------------------------------우측 메뉴의 소스입니다.
<HTML>
<HEAD>
<TITLE>r_menu</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<!-- ImageReady Preload Script (r_menu.psd) -->
<SCRIPT TYPE="text/javascript">
<!--
function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages() {
if (document.images && (preloadFlag == true)) {
for (var i=0; i<changeImages.arguments.length; i+=2) {
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}
var preloadFlag = false;
function preloadImages() {
if (document.images) {
r_menu_02_over = newImage("./yesiis/images/r_menu_02-over.gif");
r_menu_03_over = newImage("./yesiis/images/r_menu_03-over.gif");
r_menu_04_r_menu_03_over = newImage("./yesiis/images/r_menu_04-r_menu_03_over.gif");
r_menu_04_over = newImage("./yesiis/images/r_menu_04-over.gif");
r_menu_05_r_menu_04_over = newImage("./yesiis/images/r_menu_05-r_menu_04_over.gif");
r_menu_05_over = newImage("./yesiis/images/r_menu_05-over.gif");
r_menu_06_r_menu_05_over = newImage("./yesiis/images/r_menu_06-r_menu_05_over.gif");
r_menu_06_over = newImage("./yesiis/images/r_menu_06-over.gif");
r_menu_07_r_menu_06_over = newImage("./yesiis/images/r_menu_07-r_menu_06_over.gif");
r_menu_07_over = newImage("./yesiis/images/r_menu_07-over.gif");
r_menu_08_r_menu_07_over = newImage("./yesiis/images/r_menu_08-r_menu_07_over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();">
<!-- ImageReady Slices (r_menu.psd) -->
<TABLE WIDTH=100 BORDER=0 CELLPADDING=0 CELLSPACING=0>
<tr>
<td hight=80> </td>
</tr>
<TR>
<TD>
<A HREF="../zboard.php?id=notice"
ONMOUSEOVER="changeImages('r_menu_02', './images/r_menu_02-over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_02', './images/r_menu_02.gif'); return true;" target=bottom>
<IMG NAME="r_menu_02" SRC="./images/r_menu_02.gif" WIDTH=100 HEIGHT=44 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=work"
ONMOUSEOVER="changeImages('r_menu_03', './images/r_menu_03-over.gif', 'r_menu_04', './images/r_menu_04-r_menu_03_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_03', './images/r_menu_03.gif', '+ '+ 'r_menu_04', './images/r_menu_04.gif'); return true;" target=bottom>
<IMG NAME="r_menu_03" SRC="./images/r_menu_03.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=iisstudy"
ONMOUSEOVER="changeImages('r_menu_04', './images/r_menu_04-over.gif', 'r_menu_05', './images/r_menu_05-r_menu_04_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_04', './images/r_menu_04.gif', 'r_menu_05', './images/r_menu_05.gif'+ '); return true;" target=bottom>
<IMG NAME="r_menu_04" SRC="./images/r_menu_04.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=freeboard"
ONMOUSEOVER="changeImages('r_menu_05', './images/r_menu_05-over.gif', '+ 'r_menu_06', './images/r_menu_06-r_menu_05_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_05', './images/r_menu_05.gif', 'r_menu_06', './images/r_menu_06.gif'); return true;" target=bottom>
<IMG NAME="r_menu_05" SRC="./images/r_menu_05.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=guest"
ONMOUSEOVER="changeImages('r_menu_06', './images/r_menu_06-over.gif', 'r_menu_07', './images/r_menu_07-r_menu_06_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_06', './images/r_menu_06.gif', 'r_menu_07', './images/r_menu_07.gif'); return true;" target=bottom>
<IMG NAME="r_menu_06" SRC="./images/r_menu_06.gif" WIDTH=100 HEIGHT=40 BORDER=0 ALT=""></A></TD>
</TR>
<TR>
<TD>
<A HREF="../zboard.php?id=link"
ONMOUSEOVER="changeImages('r_menu_07', './images/r_menu_07-over.gif', 'r_menu_08', './images/r_menu_08-r_menu_07_over.gif'); return true;"
ONMOUSEOUT="changeImages('r_menu_07', '+ './images/r_menu_07.gif', 'r_menu_08', './images/r_menu_08.gif'); return true;" target=bottom>
<IMG NAME="r_menu_07" SRC="./images/r_menu_07.gif" WIDTH=100 HEIGHT=44 BORDER=0 ALT=""></A></TD>
</TR>
</TABLE>
<!-- End ImageReady Slices -->
</BODY>
</HTML>
-----------------------
이상입니다.
홈페이지는 개인서버라서 일정시간에만 열립니다. 아래 그림이 뜨면 열립니다.