<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>텝메뉴</title>
<script language="javascript">
function menu1(index) {
if (navigator.userAgent.indexOf("MSIE") != -1) {
if (index == 1) {
t1.style.display = "";
t2.style.display = "none";
t3.style.display = "none";
t4.style.display = "none";
}
else if(index == 2){
t1.style.display = "none";
t2.style.display = "";
t3.style.display = "none";
t4.style.display = "none";
}
else if(index == 3){
t1.style.display = "none";
t2.style.display = "none";
t3.style.display = "";
t4.style.display = "none";
}
else if(index == 4){
t1.style.display = "none";
t2.style.display = "none";
t3.style.display = "none";
t4.style.display = "";
}
}
}
</script>
</head>
<body>
<br /><br /><br />
<div id=t1>
<table width="300" border="0">
<tr height="30" align="center">
<td width="150" bgcolor="#CCCCCC">MENU1</td>
<td bgcolor="#EEEEEE"><a href="javascript:menu1(2);" onFocus="this.blur()">MENU2</a></td>
<td bgcolor="#EEEEEE"><a href="javascript:menu1(3);" onFocus="this.blur()">MENU3</a></td>
<td bgcolor="#EEEEEE"><a href="javascript:menu1(4);" onFocus="this.blur()">MENU4</a></td>
</tr>
<tr height="100">
<td colspan="4" bgcolor="red">
Content 1
</td>
</tr>
</table>
</div>
<div id=t2 style="display:none">
<table width="300" border="0">
<tr height="30" align="center">
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(1);" onFocus="this.blur()">MENU1</a></td>
<td bgcolor="#CCCCCC">MENU2</td>
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(3);" onFocus="this.blur()">MENU3</a></td>
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(4);" onFocus="this.blur()">MENU4</a></td>
</tr>
<tr height="100">
<td colspan="4" bgcolor="blue">
Content 2
</td>
</tr>
</table>
</div>
<div id=t3 style="display:none">
<table width="300" border="0">
<tr height="30" align="center">
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(1);" onFocus="this.blur()">MENU1</a></td>
<td bgcolor="#EEEEEE"><a href="javascript:menu1(2);" onFocus="this.blur()">MENU2</a></td>
<td width="150"bgcolor="#CCCCCC">MENU3</td>
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(4);" onFocus="this.blur()">MENU4</a></td>
</tr>
<tr height="100">
<td colspan="4" bgcolor="black">
Content 3
</td>
</tr>
</table>
</div>
<div id=t4 style="display:none">
<table width="300" border="0">
<tr height="30" align="center">
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(1);" onFocus="this.blur()">MENU1</a></td>
<td bgcolor="#EEEEEE"><a href="javascript:menu1(2);" onFocus="this.blur()">MENU2</a></td>
<td width="150" bgcolor="#EEEEEE"><a href="javascript:menu1(3);" onFocus="this.blur()">MENU3</a></td>
<td width="150" bgcolor="#CCCCCC">MENU4</td>
</tr>
<tr height="100">
<td colspan="4" bgcolor="black">
Content 4
</td>
</tr>
</table>
</div>
<br /><br /><br />
</body>
</html>
이상 소스구요..
익스플로러 9에서는 보이는데 파이어폭스에서는 적용이 안되네요...
이유가 뭘까요..
답변 부탁드립니다...
댓글 1개
조건이 걸려이네요. 익스일때만 작동해라 라는 식으로 저줄하고 하단의 } 를 삭제해서 조건을 빼주니 다른브라우저에서도 작동하네요.
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6630 |
차가운바람
|
12년 전 | 1164 | |
| 6629 | 12년 전 | 1160 | ||
| 6628 |
put777
|
12년 전 | 642 | |
| 6627 |
|
12년 전 | 700 | |
| 6626 | 12년 전 | 1616 | ||
| 6625 |
|
12년 전 | 719 | |
| 6624 |
미켈란젤로의왼손
|
12년 전 | 485 | |
| 6623 |
|
12년 전 | 1045 | |
| 6622 | 12년 전 | 1394 | ||
| 6621 |
차가운바람
|
12년 전 | 633 | |
| 6620 | 12년 전 | 733 | ||
| 6619 |
|
12년 전 | 969 | |
| 6618 | 12년 전 | 1742 | ||
| 6617 | 12년 전 | 639 | ||
| 6616 |
차가운바람
|
12년 전 | 894 | |
| 6615 | 12년 전 | 2853 | ||
| 6614 | 12년 전 | 616 | ||
| 6613 |
강명구베드로
|
12년 전 | 531 | |
| 6612 |
|
12년 전 | 426 | |
| 6611 | 12년 전 | 1206 | ||
| 6610 | 12년 전 | 1024 | ||
| 6609 | 12년 전 | 3679 | ||
| 6608 |
|
12년 전 | 831 | |
| 6607 | 12년 전 | 696 | ||
| 6606 | 12년 전 | 566 | ||
| 6605 | 12년 전 | 457 | ||
| 6604 | 12년 전 | 976 | ||
| 6603 |
geektoo
|
12년 전 | 703 | |
| 6602 | 12년 전 | 842 | ||
| 6601 | 12년 전 | 365 | ||
| 6600 | 12년 전 | 413 | ||
| 6599 | 12년 전 | 556 | ||
| 6598 | 12년 전 | 939 | ||
| 6597 | 12년 전 | 943 | ||
| 6596 | 12년 전 | 425 | ||
| 6595 | 12년 전 | 794 | ||
| 6594 | 12년 전 | 4576 | ||
| 6593 | 12년 전 | 2581 | ||
| 6592 | 12년 전 | 829 | ||
| 6591 | 12년 전 | 589 | ||
| 6590 |
|
12년 전 | 1399 | |
| 6589 | 12년 전 | 770 | ||
| 6588 |
GINUSSOFT
|
12년 전 | 5132 | |
| 6587 | 12년 전 | 6215 | ||
| 6586 | 12년 전 | 1051 | ||
| 6585 | 12년 전 | 809 | ||
| 6584 | 12년 전 | 469 | ||
| 6583 |
|
12년 전 | 985 | |
| 6582 | 12년 전 | 872 | ||
| 6581 | 12년 전 | 842 | ||
| 6580 | 12년 전 | 620 | ||
| 6579 |
알랑가몰라
|
12년 전 | 933 | |
| 6578 | 12년 전 | 1335 | ||
| 6577 | 12년 전 | 1505 | ||
| 6576 |
경dragon
|
12년 전 | 777 | |
| 6575 | 12년 전 | 1891 | ||
| 6574 | 12년 전 | 690 | ||
| 6573 | 12년 전 | 989 | ||
| 6572 |
|
12년 전 | 1670 | |
| 6571 |
CTOMAN
|
12년 전 | 1966 | |
| 6570 | 12년 전 | 1738 | ||
| 6569 | 12년 전 | 1896 | ||
| 6568 | 12년 전 | 2409 | ||
| 6567 | 12년 전 | 1033 | ||
| 6566 |
lainfox
|
12년 전 | 1537 | |
| 6565 | 12년 전 | 3657 | ||
| 6564 |
제주프라이스
|
12년 전 | 1542 | |
| 6563 | 12년 전 | 1576 | ||
| 6562 |
프로프리랜서
|
12년 전 | 1354 | |
| 6561 |
프로프리랜서
|
12년 전 | 972 | |
| 6560 |
프로프리랜서
|
12년 전 | 1231 | |
| 6559 |
프로프리랜서
|
12년 전 | 1143 | |
| 6558 |
프로프리랜서
|
12년 전 | 1361 | |
| 6557 |
프로프리랜서
|
12년 전 | 1985 | |
| 6556 |
프로프리랜서
|
12년 전 | 1531 | |
| 6555 |
프로프리랜서
|
12년 전 | 1373 | |
| 6554 |
프로프리랜서
|
12년 전 | 3895 | |
| 6553 |
프로프리랜서
|
12년 전 | 1516 | |
| 6552 | 12년 전 | 851 | ||
| 6551 |
왕초보sasa
|
12년 전 | 1545 | |
| 6550 |
왕초보sasa
|
12년 전 | 641 | |
| 6549 |
왕초보sasa
|
12년 전 | 913 | |
| 6548 | 12년 전 | 1303 | ||
| 6547 | 12년 전 | 1200 | ||
| 6546 | 12년 전 | 5166 | ||
| 6545 | 12년 전 | 2525 | ||
| 6544 |
AnnieK
|
12년 전 | 1786 | |
| 6543 |
베르무트7
|
12년 전 | 649 | |
| 6542 |
오늘도망했다
|
12년 전 | 2237 | |
| 6541 | 12년 전 | 820 | ||
| 6540 | 12년 전 | 1142 | ||
| 6539 | 12년 전 | 853 | ||
| 6538 |
senseme
|
12년 전 | 3380 | |
| 6537 | 12년 전 | 783 | ||
| 6536 | 12년 전 | 3671 | ||
| 6535 | 12년 전 | 1355 | ||
| 6534 | 12년 전 | 1624 | ||
| 6533 | 12년 전 | 2248 | ||
| 6532 |
냐옹이사범
|
12년 전 | 2308 | |
| 6531 | 12년 전 | 571 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기