심플한 드롭다운 레이어 메뉴 (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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 8230 | 9년 전 | 41 | ||
| 8229 | 9년 전 | 50 | ||
| 8228 |
커네드커네드
|
9년 전 | 93 | |
| 8227 | 9년 전 | 103 | ||
| 8226 | 9년 전 | 141 | ||
| 8225 | 9년 전 | 131 | ||
| 8224 | 9년 전 | 127 | ||
| 8223 | 9년 전 | 87 | ||
| 8222 |
|
9년 전 | 161 | |
| 8221 | 9년 전 | 77 | ||
| 8220 | 9년 전 | 71 | ||
| 8219 | 9년 전 | 75 | ||
| 8218 | 9년 전 | 110 | ||
| 8217 |
star3840
|
9년 전 | 94 | |
| 8216 | 9년 전 | 130 | ||
| 8215 | 9년 전 | 83 | ||
| 8214 | 9년 전 | 202 | ||
| 8213 | 9년 전 | 140 | ||
| 8212 | 9년 전 | 54 | ||
| 8211 | 9년 전 | 219 | ||
| 8210 | 9년 전 | 212 | ||
| 8209 | 9년 전 | 315 | ||
| 8208 | 9년 전 | 181 | ||
| 8207 | 9년 전 | 196 | ||
| 8206 |
|
9년 전 | 157 | |
| 8205 | 9년 전 | 143 | ||
| 8204 | 9년 전 | 106 | ||
| 8203 | 9년 전 | 197 | ||
| 8202 | 9년 전 | 123 | ||
| 8201 | 9년 전 | 161 | ||
| 8200 | 9년 전 | 130 | ||
| 8199 | 9년 전 | 177 | ||
| 8198 | 9년 전 | 151 | ||
| 8197 | 9년 전 | 130 | ||
| 8196 | 9년 전 | 510 | ||
| 8195 | 9년 전 | 133 | ||
| 8194 | 9년 전 | 262 | ||
| 8193 | 9년 전 | 129 | ||
| 8192 | 9년 전 | 158 | ||
| 8191 | 9년 전 | 115 | ||
| 8190 | 9년 전 | 108 | ||
| 8189 | 9년 전 | 162 | ||
| 8188 | 9년 전 | 104 | ||
| 8187 | 9년 전 | 119 | ||
| 8186 | 9년 전 | 128 | ||
| 8185 | 9년 전 | 289 | ||
| 8184 | 9년 전 | 82 | ||
| 8183 | 9년 전 | 305 | ||
| 8182 | 9년 전 | 137 | ||
| 8181 | 9년 전 | 108 | ||
| 8180 | 9년 전 | 673 | ||
| 8179 | 9년 전 | 471 | ||
| 8178 | 9년 전 | 276 | ||
| 8177 |
kiplayer
|
9년 전 | 282 | |
| 8176 | 9년 전 | 322 | ||
| 8175 | 9년 전 | 203 | ||
| 8174 | 9년 전 | 210 | ||
| 8173 | 9년 전 | 321 | ||
| 8172 | 9년 전 | 163 | ||
| 8171 | 9년 전 | 159 | ||
| 8170 | 9년 전 | 274 | ||
| 8169 |
커네드커네드
|
9년 전 | 240 | |
| 8168 | 9년 전 | 293 | ||
| 8167 | 9년 전 | 300 | ||
| 8166 | 9년 전 | 211 | ||
| 8165 | 9년 전 | 144 | ||
| 8164 | 9년 전 | 274 | ||
| 8163 | 9년 전 | 264 | ||
| 8162 | 9년 전 | 270 | ||
| 8161 | 9년 전 | 269 | ||
| 8160 |
|
9년 전 | 465 | |
| 8159 | 9년 전 | 380 | ||
| 8158 | 9년 전 | 198 | ||
| 8157 | 9년 전 | 337 | ||
| 8156 | 9년 전 | 253 | ||
| 8155 | 9년 전 | 231 | ||
| 8154 |
00년생용띠
|
9년 전 | 574 | |
| 8153 | 9년 전 | 203 | ||
| 8152 |
|
9년 전 | 379 | |
| 8151 | 9년 전 | 381 | ||
| 8150 | 9년 전 | 472 | ||
| 8149 |
Jangfolk
|
9년 전 | 313 | |
| 8148 | 9년 전 | 146 | ||
| 8147 | 9년 전 | 353 | ||
| 8146 | 9년 전 | 408 | ||
| 8145 | 9년 전 | 335 | ||
| 8144 | 9년 전 | 303 | ||
| 8143 | 9년 전 | 157 | ||
| 8142 | 9년 전 | 404 | ||
| 8141 | 9년 전 | 353 | ||
| 8140 | 9년 전 | 900 | ||
| 8139 | 9년 전 | 226 | ||
| 8138 |
전갈자리남자
|
9년 전 | 366 | |
| 8137 | 9년 전 | 346 | ||
| 8136 | 9년 전 | 713 | ||
| 8135 |
|
9년 전 | 761 | |
| 8134 |
PlayPixel
|
9년 전 | 475 | |
| 8133 |
|
9년 전 | 416 | |
| 8132 | 9년 전 | 428 | ||
| 8131 | 9년 전 | 783 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기