버튼 오버시 레이어창 1개는 되는데 2개부터 작동안함 정보
PHP 버튼 오버시 레이어창 1개는 되는데 2개부터 작동안함
본문
완전 초보입니다.
떠도는 아래 소스를 겨우 구했는데
원래 버튼이 1개일때 소스여서 구현하고자 하는 화면에서는 버튼이 총 6개라서요..
1개버튼일때 소스를 복사해서 붙여넣고 세트메뉴 번호만 2로 바꾸었는데 작동을 안해요..ㅠ
2개일땐 소스 어디를 수정해야하는지 알려주시면 너무 감사하겠습니다.
<!-- 메뉴 테이블-->
<div align="center">
<table border=0 cellpadding=0 cellspacing=0>
<tr>
<td><img src="/file/img/1-1.jpg" style='cursor:hand;' onclick=setMenu(1); onMouseOver=setMenu(1); onMouseout=setMenu(0);></td>
<td><img src="/file/img/1-2.jpg" style='cursor:hand;' onclick=setMenu(2); onMouseOver=setMenu(2); onMouseout=setMenu(0);></td>
</tr>
</table>
</div>
<!-- 메뉴 테이블-->
<!-- global menu layer start-->
<p><div id="gml" onmouseover=setMenu(1) onmouseout=setMenu(0); style="width:1000px; height:174px; position:absolute; background=#fff;left:50px; top:110px; z-index:1; visibility:hidden; left:expression_(((document.body.clientWidth-900)/2)+611); filter: alpha(opacity=100);">
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td rowspan="8" width=3 bgcolor="fff"></td>
<td width=100% height=3 bgcolor="fff"></td>
</tr>
<tr><td bgcolor=#FFFFFF height=3></td></tr>
<tr><td bgcolor=#FFFFFF style='padding:2 0 2 7;cursor:hand' onMouseOver=this.style.background='' OnMouseOut=this.style.background='' onClick=top.location.href='./';><img src="/file/img/0-1.jpg"></td></tr>
<tr><td height=3 bgcolor="fff"></td></tr>
</table>
</div>
<p><div id="gml" onmouseover=setMenu(2) onmouseout=setMenu(0); style="width:1000px; height:174px; position:absolute; background=#fff;left:50px; top:110px; z-index:1; visibility:hidden; left:expression_(((document.body.clientWidth-900)/2)+611); filter: alpha(opacity=100);">
<table width=100% border=0 cellspacing=0 cellpadding=0>
<tr><td rowspan="8" width=3 bgcolor="fff"></td>
<td width=100% height=3 bgcolor="fff"></td>
</tr>
<tr><td bgcolor=#FFFFFF height=3></td></tr>
<tr><td bgcolor=#FFFFFF style='padding:2 0 2 7;cursor:hand' onMouseOver=this.style.background='' OnMouseOut=this.style.background='' onClick=top.location.href='./';><img src="/file/img/0-2.jpg"></td></tr>
<tr><td height=3 bgcolor="fff"></td></tr>
</table>
</div>
<script language=javascript>
<!--//
function setMenu(stat){
if (stat == 1){
var len = ((document.body.clientWidth-900)/2)+613
if(len < 613 ){
len = 613
}
document.all.gml.style.zIndex = 1;
document.all.gml.style.position = 'absolute';
document.all.gml.style.left = len;
document.all.gml.style.visibility = 'visible';
} else if (stat == 0) {
document.all.gml.style.visibility = 'hidden';
}
}
//-->
</script>
0
댓글 0개