묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이 소스가 롤오버가 안되고 자꾸 스크립트 오류가 나네요.. 뭔가 잘못된점이 있는지??
2003.07.18 20:16
가르쳐 주심 감사하겠습니당 ^^;;
--------------------------------------------
<HTML>
<HEAD>
<TITLE>menu</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<!-- ImageReady Preload Script (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) {
main_02_over = newImage("images/main_02-over.gif");
main_03_main_02_over = newImage("images/main_03-main_02_over.gif");
main_03_main_06_over = newImage("images/main_03-main_06_over.gif");
main_03_main_08_over = newImage("images/main_03-main_08_over.gif");
main_04_over = newImage("images/main_04-over.gif");
main_05_over = newImage("images/main_05-over.gif");
main_06_over = newImage("images/main_06-over.gif");
main_07_over = newImage("images/main_07-over.gif");
main_08_over = newImage("images/main_08-over.gif");
main_09_over = newImage("images/main_09-over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
// -->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();na_preload_img(false, 'images/main_02-over.gif', 'images/main_04-over.gif', 'images/main_05-over.gif', 'images/main_06-over.gif', 'images/main_07-over.gif', 'images/main_08-over.gif', 'images/menu_09-over.gif');">
<p align="center">
<p align="center"><!-- ImageReady Slices (menu.psd) --></p>
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD ROWSPAN=9>
<p align="center"><IMG SRC="images/main_01.gif" WIDTH=13 HEIGHT=600 ALT=""></TD>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_02', 'images/main_02-over.gif', 'main_03', 'images/main_03-main_02_over.gif'); return true;na_change_img_src('main_02', 'document', 'images/main_02-over.gif', true);"
ONMOUSEOUT="changeImages('main_02', 'images/main_02.gif', 'main_03', 'images/main_03.gif'); return true; na_restore_img_src('main_02', 'document')"><IMG NAME="main_02" SRC="images/main_02.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD ROWSPAN=8>
<p align="center">
<iframe src="http://naver.com" frameborder="0" width="672" height="588" marginwidth="0" marginheight="0" scrolling="auto" style="border:0 solid navy" ></iframe></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_04', 'images/main_04-over.gif'); return true;na_change_img_src('main_04', 'document', 'images/main_04-over.gif', true);"
ONMOUSEOUT="changeImages('main_04', 'images/main_04.gif'); return true; na_restore_img_src('main_04', 'document')"><IMG NAME="main_04" SRC="images/main_04.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_05', 'images/main_05-over.gif'); return true;na_change_img_src('main_05', 'document', 'images/main_05-over.gif', true);"
ONMOUSEOUT="changeImages('main_05', 'images/main_05.gif'); return true; na_restore_img_src('main_05', 'document')"><IMG NAME="main_05" SRC="images/main_05.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_03', 'images/main_03-main_06_over.gif', 'main_06'+ '+ ', 'images/main_06-over.gif'); return true;na_change_img_src('main_06', 'document', 'images/main_06-over.gif', true);"
ONMOUSEOUT="changeImages('+ 'main_03', 'images/main_03.gif', 'main_06', 'images/main_06.gif'+ '); return true; na_restore_img_src('main_06', 'document')"><IMG NAME="main_06" SRC="images/main_06.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_07', 'images/main_07-over.gif'); return true;na_change_img_src('main_07', '+ 'document', 'images/main_07-over.gif', true);"
ONMOUSEOUT="changeImages('main_07', 'images/main_07.gif'); return true; na_restore_img_src('main_07', 'document')"><IMG NAME="main_07" SRC="images/main_07.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_03', 'images/main_03-main_08_over.gif', 'main_08', 'images/main_08-over.gif'); return true;na_change_img_src('main_08', 'document', 'images/main_08-over.gif', true);"
ONMOUSEOUT="changeImages('main_03', 'images/main_03.gif', 'main_08', 'images/main_08.gif'); return true; na_restore_img_src('main_08', 'document')"><IMG NAME="main_08" SRC="images/main_08.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_09', 'images/main_09-over.gif'); return true;na_change_img_src('main_09', 'document', 'images/menu_09-over.gif', true);"
ONMOUSEOUT="changeImages('main_09', 'images/main_09.gif'); return true; na_restore_img_src('main_09', 'document')"><IMG NAME="main_09" SRC="images/main_09.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=2>
<p align="center"><IMG SRC="images/main_10.gif" WIDTH=115 HEIGHT=250 ALT=""></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=238 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><IMG SRC="images/main_11.gif" WIDTH=672 HEIGHT=12 ALT=""></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
</TABLE>
<p align="center"><!-- End ImageReady Slices --></BODY>
</HTML>
--------------------------------------------
<HTML>
<HEAD>
<TITLE>menu</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=euc-kr">
<!-- ImageReady Preload Script (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) {
main_02_over = newImage("images/main_02-over.gif");
main_03_main_02_over = newImage("images/main_03-main_02_over.gif");
main_03_main_06_over = newImage("images/main_03-main_06_over.gif");
main_03_main_08_over = newImage("images/main_03-main_08_over.gif");
main_04_over = newImage("images/main_04-over.gif");
main_05_over = newImage("images/main_05-over.gif");
main_06_over = newImage("images/main_06-over.gif");
main_07_over = newImage("images/main_07-over.gif");
main_08_over = newImage("images/main_08-over.gif");
main_09_over = newImage("images/main_09-over.gif");
preloadFlag = true;
}
}
// -->
</SCRIPT>
<!-- End Preload Script -->
<script language="JavaScript">
<!--
function na_restore_img_src(name, nsdoc)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img && img.altsrc) {
img.src = img.altsrc;
img.altsrc = null;
}
}
function na_preload_img()
{
var img_list = na_preload_img.arguments;
if (document.preloadlist == null)
document.preloadlist = new Array();
var top = document.preloadlist.length;
for (var i=0; i < img_list.length; i++) {
document.preloadlist[top+i] = new Image;
document.preloadlist[top+i].src = img_list[i+1];
}
}
function na_change_img_src(name, nsdoc, rpath, preload)
{
var img = eval((navigator.appName.indexOf('Netscape', 0) != -1) ? nsdoc+'.'+name : 'document.all.'+name);
if (name == '')
return;
if (img) {
img.altsrc = img.src;
img.src = rpath;
}
}
// -->
</script>
</HEAD>
<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0 ONLOAD="preloadImages();na_preload_img(false, 'images/main_02-over.gif', 'images/main_04-over.gif', 'images/main_05-over.gif', 'images/main_06-over.gif', 'images/main_07-over.gif', 'images/main_08-over.gif', 'images/menu_09-over.gif');">
<p align="center">
<p align="center"><!-- ImageReady Slices (menu.psd) --></p>
<TABLE WIDTH=800 BORDER=0 CELLPADDING=0 CELLSPACING=0 align="center">
<TR>
<TD ROWSPAN=9>
<p align="center"><IMG SRC="images/main_01.gif" WIDTH=13 HEIGHT=600 ALT=""></TD>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_02', 'images/main_02-over.gif', 'main_03', 'images/main_03-main_02_over.gif'); return true;na_change_img_src('main_02', 'document', 'images/main_02-over.gif', true);"
ONMOUSEOUT="changeImages('main_02', 'images/main_02.gif', 'main_03', 'images/main_03.gif'); return true; na_restore_img_src('main_02', 'document')"><IMG NAME="main_02" SRC="images/main_02.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD ROWSPAN=8>
<p align="center">
<iframe src="http://naver.com" frameborder="0" width="672" height="588" marginwidth="0" marginheight="0" scrolling="auto" style="border:0 solid navy" ></iframe></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_04', 'images/main_04-over.gif'); return true;na_change_img_src('main_04', 'document', 'images/main_04-over.gif', true);"
ONMOUSEOUT="changeImages('main_04', 'images/main_04.gif'); return true; na_restore_img_src('main_04', 'document')"><IMG NAME="main_04" SRC="images/main_04.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_05', 'images/main_05-over.gif'); return true;na_change_img_src('main_05', 'document', 'images/main_05-over.gif', true);"
ONMOUSEOUT="changeImages('main_05', 'images/main_05.gif'); return true; na_restore_img_src('main_05', 'document')"><IMG NAME="main_05" SRC="images/main_05.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_03', 'images/main_03-main_06_over.gif', 'main_06'+ '+ ', 'images/main_06-over.gif'); return true;na_change_img_src('main_06', 'document', 'images/main_06-over.gif', true);"
ONMOUSEOUT="changeImages('+ 'main_03', 'images/main_03.gif', 'main_06', 'images/main_06.gif'+ '); return true; na_restore_img_src('main_06', 'document')"><IMG NAME="main_06" SRC="images/main_06.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_07', 'images/main_07-over.gif'); return true;na_change_img_src('main_07', '+ 'document', 'images/main_07-over.gif', true);"
ONMOUSEOUT="changeImages('main_07', 'images/main_07.gif'); return true; na_restore_img_src('main_07', 'document')"><IMG NAME="main_07" SRC="images/main_07.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_03', 'images/main_03-main_08_over.gif', 'main_08', 'images/main_08-over.gif'); return true;na_change_img_src('main_08', 'document', 'images/main_08-over.gif', true);"
ONMOUSEOUT="changeImages('main_03', 'images/main_03.gif', 'main_08', 'images/main_08.gif'); return true; na_restore_img_src('main_08', 'document')"><IMG NAME="main_08" SRC="images/main_08.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><A HREF="#"
ONMOUSEOVER="changeImages('main_09', 'images/main_09-over.gif'); return true;na_change_img_src('main_09', 'document', 'images/menu_09-over.gif', true);"
ONMOUSEOUT="changeImages('main_09', 'images/main_09.gif'); return true; na_restore_img_src('main_09', 'document')"><IMG NAME="main_09" SRC="images/main_09.gif" WIDTH=115 HEIGHT=50 BORDER=0 ALT=""></A></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=50 ALT=""></TD>
</TR>
<TR>
<TD ROWSPAN=2>
<p align="center"><IMG SRC="images/main_10.gif" WIDTH=115 HEIGHT=250 ALT=""></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=238 ALT=""></TD>
</TR>
<TR>
<TD>
<p align="center"><IMG SRC="images/main_11.gif" WIDTH=672 HEIGHT=12 ALT=""></TD>
<TD>
<p align="center"><IMG SRC="images/spacer.gif" WIDTH=1 HEIGHT=12 ALT=""></TD>
</TR>
</TABLE>
<p align="center"><!-- End ImageReady Slices --></BODY>
</HTML>