심플한 드롭다운 레이어 메뉴 (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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 1430 | 18년 전 | 2987 | ||
| 1429 | 18년 전 | 2934 | ||
| 1428 | 18년 전 | 2831 | ||
| 1427 | 18년 전 | 2135 | ||
| 1426 |
|
18년 전 | 2316 | |
| 1425 |
|
18년 전 | 2871 | |
| 1424 |
|
18년 전 | 2966 | |
| 1423 |
frotone
|
18년 전 | 4140 | |
| 1422 | 18년 전 | 6124 | ||
| 1421 | 18년 전 | 2060 | ||
| 1420 | 18년 전 | 2188 | ||
| 1419 | 18년 전 | 1896 | ||
| 1418 | 18년 전 | 1655 | ||
| 1417 | 18년 전 | 2640 | ||
| 1416 | 18년 전 | 1707 | ||
| 1415 | 18년 전 | 1570 | ||
| 1414 | 18년 전 | 4739 | ||
| 1413 | 18년 전 | 1800 | ||
| 1412 | 18년 전 | 1843 | ||
| 1411 | 18년 전 | 1851 | ||
| 1410 | 18년 전 | 1981 | ||
| 1409 | 18년 전 | 3633 | ||
| 1408 | 18년 전 | 1658 | ||
| 1407 | 18년 전 | 1534 | ||
| 1406 | 18년 전 | 1357 | ||
| 1405 | 18년 전 | 1861 | ||
| 1404 | 18년 전 | 1910 | ||
| 1403 |
frotone
|
18년 전 | 3659 | |
| 1402 | 18년 전 | 1979 | ||
| 1401 | 18년 전 | 3116 | ||
| 1400 | 18년 전 | 4741 | ||
| 1399 | 18년 전 | 2868 | ||
| 1398 | 18년 전 | 8069 | ||
| 1397 | 18년 전 | 4069 | ||
| 1396 |
|
18년 전 | 2752 | |
| 1395 | 18년 전 | 1534 | ||
| 1394 | 18년 전 | 2629 | ||
| 1393 | 18년 전 | 5042 | ||
| 1392 | 18년 전 | 5228 | ||
| 1391 |
cncafe
|
18년 전 | 2103 | |
| 1390 |
mixdesign
|
18년 전 | 4356 | |
| 1389 | 18년 전 | 4105 | ||
| 1388 |
mixdesign
|
18년 전 | 4161 | |
| 1387 | 18년 전 | 2282 | ||
| 1386 | 18년 전 | 4191 | ||
| 1385 |
mixdesign
|
18년 전 | 2187 | |
| 1384 | 18년 전 | 3293 | ||
| 1383 | 18년 전 | 4929 | ||
| 1382 | 18년 전 | 1954 | ||
| 1381 |
오디세우스
|
18년 전 | 3417 | |
| 1380 |
mixdesign
|
18년 전 | 1655 | |
| 1379 | 18년 전 | 2753 | ||
| 1378 |
mixdesign
|
18년 전 | 1682 | |
| 1377 | 18년 전 | 2734 | ||
| 1376 |
|
18년 전 | 2559 | |
| 1375 |
|
18년 전 | 1569 | |
| 1374 |
|
18년 전 | 1505 | |
| 1373 |
|
18년 전 | 1755 | |
| 1372 | 18년 전 | 2242 | ||
| 1371 | 18년 전 | 2022 | ||
| 1370 | 18년 전 | 2389 | ||
| 1369 | 18년 전 | 4949 | ||
| 1368 |
mixdesign
|
18년 전 | 1824 | |
| 1367 | 18년 전 | 1269 | ||
| 1366 | 18년 전 | 1382 | ||
| 1365 | 18년 전 | 1343 | ||
| 1364 | 18년 전 | 1097 | ||
| 1363 | 18년 전 | 1088 | ||
| 1362 | 18년 전 | 1416 | ||
| 1361 | 18년 전 | 1378 | ||
| 1360 | 18년 전 | 2355 | ||
| 1359 | 18년 전 | 1232 | ||
| 1358 | 18년 전 | 1617 | ||
| 1357 | 18년 전 | 2108 | ||
| 1356 | 18년 전 | 1290 | ||
| 1355 | 18년 전 | 2841 | ||
| 1354 | 18년 전 | 1281 | ||
| 1353 | 18년 전 | 1660 | ||
| 1352 | 18년 전 | 1507 | ||
| 1351 | 18년 전 | 1463 | ||
| 1350 | 18년 전 | 1254 | ||
| 1349 | 18년 전 | 1085 | ||
| 1348 | 18년 전 | 1675 | ||
| 1347 | 18년 전 | 1123 | ||
| 1346 | 18년 전 | 3627 | ||
| 1345 | 18년 전 | 1718 | ||
| 1344 |
mixdesign
|
18년 전 | 1796 | |
| 1343 | 18년 전 | 1128 | ||
| 1342 | 18년 전 | 1853 | ||
| 1341 | 18년 전 | 1099 | ||
| 1340 | 18년 전 | 1167 | ||
| 1339 | 18년 전 | 1017 | ||
| 1338 | 18년 전 | 1013 | ||
| 1337 | 18년 전 | 1114 | ||
| 1336 |
|
18년 전 | 2588 | |
| 1335 | 18년 전 | 1544 | ||
| 1334 | 18년 전 | 1639 | ||
| 1333 | 18년 전 | 1204 | ||
| 1332 | 18년 전 | 1874 | ||
| 1331 | 18년 전 | 1523 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기