까망고양이

버튼 오버시 레이어창 1개는 되는데 2개부터 작동안함

· 1년 전 · 583

완전 초보입니다.

떠도는 아래 소스를 겨우 구했는데

원래 버튼이 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>

|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

개발자팁

개발과 관련된 유용한 정보를 공유하세요. 질문은 QA에서 해주시기 바랍니다.

+
분류 제목 글쓴이 날짜 조회
1년 전 조회 948
1년 전 조회 494
1년 전 조회 638
1년 전 조회 1,199
1년 전 조회 827
1년 전 조회 734
PHP 1년 전 조회 935
PHP 1년 전 조회 667
OS 1년 전 조회 739
기타 1년 전 조회 536
기타 1년 전 조회 732
기타 1년 전 조회 578
기타 1년 전 조회 459
JavaScript 1년 전 조회 524
PHP 1년 전 조회 584
jQuery 1년 전 조회 659
PHP 1년 전 조회 1,015
Mobile 1년 전 조회 681
기타 1년 전 조회 645
2년 전 조회 1,401
기타 2년 전 조회 1,920
2년 전 조회 1,031
2년 전 조회 1,059
2년 전 조회 972
2년 전 조회 807
1년 전 조회 4,044
1년 전 조회 1,785
1년 전 조회 1,411
1년 전 조회 2,760
1년 전 조회 2,578
🐛 버그신고