묻고답하기
page_full_width" class="col-xs-12" |cond="$__Context->page_full_width">
이미지로 제작된 메뉴 롤오버시 오류
2010.09.10 23:39
http://sys.wowip.kr:8000
이미로 제작된 메뉴 롤오버가 작동 불능 인데유. 외부문서로 불러온 상태구유. html자체에는 문제가 없어유..
아래는 소스 예유.
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src="x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="a[i];}}
} function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
} function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc="x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('images/projects-ov.gif','images/web-ov.gif','images/motiongraphics-ov.gif','images/3d&cg-ov.gif')">
<div class="container">
<div class="content"><img src="images/title.gif" width="476" height="112" /><br />
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('project','','images/projects-ov.gif',1)"><img src="images/projects.gif" name="project" width="380" height="55" border="0" id="project" /></a></div>
<div class="CollapsiblePanelContent"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('web','','images/web-ov.gif',1)"><img src="images/web.gif" name="web" width="164" height="54" border="0" id="web" /></a><br />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('motion','','images/motiongraphics-ov.gif',1)"><img src="images/motiongraphics.gif" name="motion" width="376" height="110" border="0" id="motion" /></a><br />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('3d','','images/3d&cg-ov.gif',1)"><img src="images/3d&cg.gif" name="3d" width="256" height="54" border="0" id="3d" /></a></div>
</div>
<img src="images/laboratory.gif" width="495" height="54" /><br />
<img src="images/news.gif" width="210" height="55" /><br />
<img src="images/info.gif" width="173" height="54" /> </div>
<!-- end .container --></div>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
</script> 어떻게 해결 될까유? 알려주세유~ 쉬운 답변 부탁해유...초보라서유..
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src="x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src="a[i];}}
} function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
} function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc="x.src; x.src=a[i+2];}
}
</script>
</head>
<body onload="MM_preloadImages('images/projects-ov.gif','images/web-ov.gif','images/motiongraphics-ov.gif','images/3d&cg-ov.gif')">
<div class="container">
<div class="content"><img src="images/title.gif" width="476" height="112" /><br />
<div id="CollapsiblePanel1" class="CollapsiblePanel">
<div class="CollapsiblePanelTab" tabindex="0"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('project','','images/projects-ov.gif',1)"><img src="images/projects.gif" name="project" width="380" height="55" border="0" id="project" /></a></div>
<div class="CollapsiblePanelContent"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('web','','images/web-ov.gif',1)"><img src="images/web.gif" name="web" width="164" height="54" border="0" id="web" /></a><br />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('motion','','images/motiongraphics-ov.gif',1)"><img src="images/motiongraphics.gif" name="motion" width="376" height="110" border="0" id="motion" /></a><br />
<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('3d','','images/3d&cg-ov.gif',1)"><img src="images/3d&cg.gif" name="3d" width="256" height="54" border="0" id="3d" /></a></div>
</div>
<img src="images/laboratory.gif" width="495" height="54" /><br />
<img src="images/news.gif" width="210" height="55" /><br />
<img src="images/info.gif" width="173" height="54" /> </div>
<!-- end .container --></div>
<script type="text/javascript">
var CollapsiblePanel1 = new Spry.Widget.CollapsiblePanel("CollapsiblePanel1", {contentIsOpen:false});
</script> 어떻게 해결 될까유? 알려주세유~ 쉬운 답변 부탁해유...초보라서유..