심플한 드롭다운 레이어 메뉴 (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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7830 | 9년 전 | 365 | ||
| 7829 |
|
9년 전 | 542 | |
| 7828 | 9년 전 | 477 | ||
| 7827 | 9년 전 | 359 | ||
| 7826 | 9년 전 | 368 | ||
| 7825 | 9년 전 | 421 | ||
| 7824 | 9년 전 | 412 | ||
| 7823 | 9년 전 | 308 | ||
| 7822 | 9년 전 | 313 | ||
| 7821 | 9년 전 | 261 | ||
| 7820 | 9년 전 | 311 | ||
| 7819 |
|
9년 전 | 711 | |
| 7818 | 9년 전 | 333 | ||
| 7817 | 9년 전 | 433 | ||
| 7816 | 9년 전 | 350 | ||
| 7815 | 10년 전 | 551 | ||
| 7814 | 10년 전 | 371 | ||
| 7813 | 10년 전 | 306 | ||
| 7812 | 10년 전 | 335 | ||
| 7811 | 10년 전 | 355 | ||
| 7810 | 10년 전 | 480 | ||
| 7809 | 10년 전 | 429 | ||
| 7808 | 10년 전 | 273 | ||
| 7807 | 10년 전 | 337 | ||
| 7806 |
프로그래머7
|
10년 전 | 1300 | |
| 7805 | 10년 전 | 1195 | ||
| 7804 |
zahir1312
|
10년 전 | 730 | |
| 7803 |
|
10년 전 | 1335 | |
| 7802 | 10년 전 | 389 | ||
| 7801 | 10년 전 | 819 | ||
| 7800 | 10년 전 | 1032 | ||
| 7799 | 10년 전 | 492 | ||
| 7798 | 10년 전 | 439 | ||
| 7797 | 10년 전 | 439 | ||
| 7796 | 10년 전 | 292 | ||
| 7795 | 10년 전 | 444 | ||
| 7794 | 10년 전 | 466 | ||
| 7793 | 10년 전 | 986 | ||
| 7792 | 10년 전 | 396 | ||
| 7791 | 10년 전 | 468 | ||
| 7790 | 10년 전 | 445 | ||
| 7789 |
fbastore
|
10년 전 | 1377 | |
| 7788 | 10년 전 | 479 | ||
| 7787 | 10년 전 | 338 | ||
| 7786 | 10년 전 | 489 | ||
| 7785 | 10년 전 | 505 | ||
| 7784 | 10년 전 | 576 | ||
| 7783 | 10년 전 | 379 | ||
| 7782 | 10년 전 | 434 | ||
| 7781 | 10년 전 | 838 | ||
| 7780 | 10년 전 | 770 | ||
| 7779 | 10년 전 | 744 | ||
| 7778 | 10년 전 | 303 | ||
| 7777 | 10년 전 | 388 | ||
| 7776 | 10년 전 | 390 | ||
| 7775 | 10년 전 | 328 | ||
| 7774 | 10년 전 | 595 | ||
| 7773 | 10년 전 | 317 | ||
| 7772 | 10년 전 | 658 | ||
| 7771 | 10년 전 | 318 | ||
| 7770 | 10년 전 | 606 | ||
| 7769 | 10년 전 | 312 | ||
| 7768 | 10년 전 | 538 | ||
| 7767 | 10년 전 | 1114 | ||
| 7766 | 10년 전 | 437 | ||
| 7765 | 10년 전 | 458 | ||
| 7764 |
잘살아보자
|
10년 전 | 316 | |
| 7763 |
|
10년 전 | 1388 | |
| 7762 |
Tosea
|
10년 전 | 1010 | |
| 7761 | 10년 전 | 610 | ||
| 7760 |
잘살아보자
|
10년 전 | 577 | |
| 7759 |
잘살아보자
|
10년 전 | 390 | |
| 7758 |
잘살아보자
|
10년 전 | 511 | |
| 7757 | 10년 전 | 1169 | ||
| 7756 |
ITBANK
|
10년 전 | 1209 | |
| 7755 | 10년 전 | 1889 | ||
| 7754 | 10년 전 | 974 | ||
| 7753 | 10년 전 | 834 | ||
| 7752 | 10년 전 | 1333 | ||
| 7751 |
잘살아보자
|
10년 전 | 460 | |
| 7750 |
잘살아보자
|
10년 전 | 426 | |
| 7749 |
잘살아보자
|
10년 전 | 424 | |
| 7748 |
잘살아보자
|
10년 전 | 416 | |
| 7747 |
잘살아보자
|
10년 전 | 501 | |
| 7746 |
잘살아보자
|
10년 전 | 615 | |
| 7745 |
잘살아보자
|
10년 전 | 858 | |
| 7744 |
잘살아보자
|
10년 전 | 383 | |
| 7743 | 10년 전 | 908 | ||
| 7742 |
starbros
|
10년 전 | 781 | |
| 7741 |
잘살아보자
|
10년 전 | 588 | |
| 7740 |
잘살아보자
|
10년 전 | 466 | |
| 7739 |
잘살아보자
|
10년 전 | 428 | |
| 7738 |
잘살아보자
|
10년 전 | 481 | |
| 7737 |
잘살아보자
|
10년 전 | 436 | |
| 7736 |
잘살아보자
|
10년 전 | 462 | |
| 7735 |
잘살아보자
|
10년 전 | 795 | |
| 7734 |
잘살아보자
|
10년 전 | 383 | |
| 7733 |
잘살아보자
|
10년 전 | 481 | |
| 7732 |
잘살아보자
|
10년 전 | 638 | |
| 7731 |
잘살아보자
|
10년 전 | 563 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기