심플한 드롭다운 레이어 메뉴 (2단계 메뉴 구성)
심플한 드롭다운 레이어 메뉴입니다.
(2단계 메뉴 구성)
(예제)
----------------------------- 소스 시작 ---------------------------
<html>
<head>
<title>http://www.jioponti.co.kr</title>
<script type="text/javascript">
var TimeOut = 300;
var currentLayer = null;
var currentitem = null;
var currentLayerNum = 0;
var noClose = 0;
var closeTimer = null;
// Open Hidden Layer
function mopen(n)
{
var l = document.getElementById("menu"+n);
var mm = document.getElementById("mmenu"+n);
if(l)
{
mcancelclosetime();
l.style.visibility='visible';
if(currentLayer && (currentLayerNum != n))
currentLayer.style.visibility='hidden';
currentLayer = l;
currentitem = mm;
currentLayerNum = n;
}
else if(currentLayer)
{
currentLayer.style.visibility='hidden';
currentLayerNum = 0;
currentitem = null;
currentLayer = null;
}
}
// Turn On Close Timer
function mclosetime()
{
closeTimer = window.setTimeout(mclose, TimeOut);
}
// Cancel Close Timer
function mcancelclosetime()
{
if(closeTimer)
{
window.clearTimeout(closeTimer);
closeTimer = null;
}
}
// Close Showed Layer
function mclose()
{
if(currentLayer && noClose!=1)
{
currentLayer.style.visibility='hidden';
currentLayerNum = 0;
currentLayer = null;
currentitem = null;
}
else
{
noClose = 0;
}
currentLayer = null;
currentitem = null;
}
// Close Layer Then Click-out
document.onclick = mclose;
</script>
<style>
#dd
{ margin: 0;
padding: 0}
#dd li
{ margin: 0;
padding: 0;
list-style: none;
float: left;
font: bold 11px arial}
#dd li a.menu
{ display: block;
text-align: center;
background: #5970B2;
padding: 4px 10px;
margin: 0 1px 0 0;
color: #FFF;
width: 100px;
text-decoration: none}
#dd li a.menu:hover
{ background: #49A3FF}
.submenu
{ background: #EAEBD8;
border: 1px solid #5970B2;
visibility: hidden;
position: absolute;
z-index: 3}
.submenu a
{ display: block;
font: 11px arial;
text-align: left;
text-decoration: none;
padding: 5px;
color: #2875DE}
.submenu a:hover
{ background: #49A3FF;
color: #FFF}
</style>
</head>
<body>
<ul id="dd">
<li>
<a href="#" class="menu" id="mmenu1" onmouseover="mopen(1);" onmouseout="mclosetime();">Home</a>
<div class="submenu" id="menu1" onmouseover="mcancelclosetime()" onmouseout="mclosetime();">
<a href="#">HTML DropDown</a>
<a href="#">DHTML DropDown menu</a>
<a href="#">JavaScript DropDown</a>
<a href="#">DropDown Menu</a>
<a href="#">CSS DropDown</a>
</div>
</li>
<li>
<a href="#" class="menu" id="mmenu2" onmouseover="mopen(2);" onmouseout="mclosetime();">Download</a>
<div class="submenu" id="menu2" onmouseover="mcancelclosetime()" onmouseout="mclosetime();">
<a href="#">ASP Dropdown</a>
<a href="#">Pulldown menu</a>
<a href="#">AJAX dropdown</a>
<a href="#">DIV dropdown</a>
</div>
</li>
<li><a href="#" class="menu">Order</a></li>
<li><a href="#" class="menu">Help</a></li>
<li><a href="#" class="menu">Contact</a></li>
</ul>
</body>
</html>
----------------------------- 소스 끝 ---------------------------
댓글 2개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7130 | 11년 전 | 2304 | ||
| 7129 | 11년 전 | 710 | ||
| 7128 |
senseme
|
11년 전 | 1299 | |
| 7127 | 11년 전 | 1173 | ||
| 7126 | 11년 전 | 824 | ||
| 7125 | 11년 전 | 2952 | ||
| 7124 | 11년 전 | 1426 | ||
| 7123 |
잘살아보자
|
11년 전 | 1291 | |
| 7122 |
잘살아보자
|
11년 전 | 689 | |
| 7121 |
잘살아보자
|
11년 전 | 3050 | |
| 7120 |
잘살아보자
|
11년 전 | 2918 | |
| 7119 |
잘살아보자
|
11년 전 | 732 | |
| 7118 |
잘살아보자
|
11년 전 | 3433 | |
| 7117 |
잘살아보자
|
11년 전 | 853 | |
| 7116 | 11년 전 | 746 | ||
| 7115 | 11년 전 | 1032 | ||
| 7114 | 11년 전 | 850 | ||
| 7113 | 11년 전 | 664 | ||
| 7112 | 11년 전 | 1086 | ||
| 7111 | 11년 전 | 1800 | ||
| 7110 | 11년 전 | 1035 | ||
| 7109 |
버섯먹은나
|
11년 전 | 812 | |
| 7108 | 11년 전 | 647 | ||
| 7107 | 11년 전 | 2409 | ||
| 7106 | 11년 전 | 1961 | ||
| 7105 | 11년 전 | 2485 | ||
| 7104 | 11년 전 | 1425 | ||
| 7103 |
|
11년 전 | 2709 | |
| 7102 | 11년 전 | 3119 | ||
| 7101 | 11년 전 | 4446 | ||
| 7100 | 11년 전 | 5794 | ||
| 7099 | 11년 전 | 2143 | ||
| 7098 | 11년 전 | 1725 | ||
| 7097 | 11년 전 | 1463 | ||
| 7096 | 11년 전 | 1128 | ||
| 7095 |
잘살아보자
|
11년 전 | 859 | |
| 7094 |
잘살아보자
|
11년 전 | 1063 | |
| 7093 |
잘살아보자
|
11년 전 | 940 | |
| 7092 |
잘살아보자
|
11년 전 | 1411 | |
| 7091 |
잘살아보자
|
11년 전 | 2212 | |
| 7090 |
잘살아보자
|
11년 전 | 894 | |
| 7089 | 11년 전 | 1067 | ||
| 7088 | 11년 전 | 1715 | ||
| 7087 | 11년 전 | 1411 | ||
| 7086 | 11년 전 | 1313 | ||
| 7085 |
|
11년 전 | 1237 | |
| 7084 | 11년 전 | 1156 | ||
| 7083 | 11년 전 | 3504 | ||
| 7082 | 11년 전 | 1154 | ||
| 7081 | 11년 전 | 1738 | ||
| 7080 | 11년 전 | 2025 | ||
| 7079 | 11년 전 | 1333 | ||
| 7078 | 11년 전 | 1305 | ||
| 7077 | 11년 전 | 1314 | ||
| 7076 | 11년 전 | 771 | ||
| 7075 | 11년 전 | 1155 | ||
| 7074 |
네이비칼라
|
11년 전 | 1509 | |
| 7073 | 11년 전 | 1479 | ||
| 7072 |
|
11년 전 | 836 | |
| 7071 | 11년 전 | 1210 | ||
| 7070 | 11년 전 | 935 | ||
| 7069 | 11년 전 | 1709 | ||
| 7068 | 11년 전 | 1363 | ||
| 7067 |
TPSint
|
11년 전 | 749 | |
| 7066 | 11년 전 | 2154 | ||
| 7065 | 11년 전 | 6652 | ||
| 7064 | 11년 전 | 1296 | ||
| 7063 | 11년 전 | 1140 | ||
| 7062 | 11년 전 | 1079 | ||
| 7061 | 11년 전 | 919 | ||
| 7060 | 11년 전 | 1474 | ||
| 7059 | 11년 전 | 885 | ||
| 7058 |
EngineMan
|
11년 전 | 3407 | |
| 7057 | 11년 전 | 1249 | ||
| 7056 | 11년 전 | 1639 | ||
| 7055 | 11년 전 | 1020 | ||
| 7054 | 11년 전 | 2658 | ||
| 7053 |
네이비칼라
|
11년 전 | 1289 | |
| 7052 | 11년 전 | 2584 | ||
| 7051 | 11년 전 | 1941 | ||
| 7050 | 11년 전 | 2457 | ||
| 7049 | 11년 전 | 1413 | ||
| 7048 | 11년 전 | 2538 | ||
| 7047 | 11년 전 | 1361 | ||
| 7046 | 11년 전 | 1042 | ||
| 7045 | 11년 전 | 1069 | ||
| 7044 | 11년 전 | 5441 | ||
| 7043 | 11년 전 | 1234 | ||
| 7042 | 11년 전 | 793 | ||
| 7041 |
열라뽕똬이
|
11년 전 | 763 | |
| 7040 | 11년 전 | 1118 | ||
| 7039 | 11년 전 | 1466 | ||
| 7038 | 11년 전 | 1879 | ||
| 7037 | 11년 전 | 2182 | ||
| 7036 | 11년 전 | 1089 | ||
| 7035 | 11년 전 | 1410 | ||
| 7034 | 11년 전 | 1359 | ||
| 7033 |
열라뽕똬이
|
11년 전 | 1000 | |
| 7032 | 11년 전 | 755 | ||
| 7031 | 11년 전 | 2188 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기