심플한 드롭다운 레이어 메뉴 (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개
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 7930 | 9년 전 | 445 | ||
| 7929 | 9년 전 | 377 | ||
| 7928 | 9년 전 | 462 | ||
| 7927 | 9년 전 | 373 | ||
| 7926 | 9년 전 | 681 | ||
| 7925 | 9년 전 | 395 | ||
| 7924 | 9년 전 | 380 | ||
| 7923 | 9년 전 | 375 | ||
| 7922 | 9년 전 | 409 | ||
| 7921 | 9년 전 | 421 | ||
| 7920 | 9년 전 | 340 | ||
| 7919 | 9년 전 | 349 | ||
| 7918 | 9년 전 | 502 | ||
| 7917 | 9년 전 | 353 | ||
| 7916 | 9년 전 | 441 | ||
| 7915 | 9년 전 | 445 | ||
| 7914 | 9년 전 | 454 | ||
| 7913 | 9년 전 | 628 | ||
| 7912 | 9년 전 | 462 | ||
| 7911 | 9년 전 | 392 | ||
| 7910 | 9년 전 | 440 | ||
| 7909 | 9년 전 | 541 | ||
| 7908 | 9년 전 | 484 | ||
| 7907 | 9년 전 | 420 | ||
| 7906 | 9년 전 | 442 | ||
| 7905 | 9년 전 | 406 | ||
| 7904 | 9년 전 | 393 | ||
| 7903 | 9년 전 | 392 | ||
| 7902 | 9년 전 | 588 | ||
| 7901 |
|
9년 전 | 764 | |
| 7900 | 9년 전 | 643 | ||
| 7899 | 9년 전 | 427 | ||
| 7898 | 9년 전 | 424 | ||
| 7897 | 9년 전 | 382 | ||
| 7896 | 9년 전 | 396 | ||
| 7895 | 9년 전 | 509 | ||
| 7894 | 9년 전 | 427 | ||
| 7893 | 9년 전 | 398 | ||
| 7892 | 9년 전 | 434 | ||
| 7891 | 9년 전 | 797 | ||
| 7890 | 9년 전 | 1226 | ||
| 7889 | 9년 전 | 762 | ||
| 7888 |
limsy1987
|
9년 전 | 573 | |
| 7887 | 9년 전 | 602 | ||
| 7886 | 9년 전 | 492 | ||
| 7885 | 9년 전 | 457 | ||
| 7884 | 9년 전 | 451 | ||
| 7883 | 9년 전 | 455 | ||
| 7882 | 9년 전 | 515 | ||
| 7881 | 9년 전 | 484 | ||
| 7880 | 9년 전 | 611 | ||
| 7879 | 9년 전 | 499 | ||
| 7878 | 9년 전 | 1274 | ||
| 7877 | 9년 전 | 798 | ||
| 7876 | 9년 전 | 533 | ||
| 7875 | 9년 전 | 608 | ||
| 7874 |
|
9년 전 | 826 | |
| 7873 | 9년 전 | 543 | ||
| 7872 | 9년 전 | 710 | ||
| 7871 | 9년 전 | 525 | ||
| 7870 | 9년 전 | 647 | ||
| 7869 | 9년 전 | 458 | ||
| 7868 | 9년 전 | 496 | ||
| 7867 | 9년 전 | 493 | ||
| 7866 | 9년 전 | 548 | ||
| 7865 | 9년 전 | 488 | ||
| 7864 | 9년 전 | 555 | ||
| 7863 | 9년 전 | 549 | ||
| 7862 | 9년 전 | 504 | ||
| 7861 | 9년 전 | 687 | ||
| 7860 | 9년 전 | 658 | ||
| 7859 | 9년 전 | 438 | ||
| 7858 | 9년 전 | 741 | ||
| 7857 | 9년 전 | 1127 | ||
| 7856 | 9년 전 | 560 | ||
| 7855 | 9년 전 | 788 | ||
| 7854 | 9년 전 | 745 | ||
| 7853 | 9년 전 | 636 | ||
| 7852 | 9년 전 | 560 | ||
| 7851 | 9년 전 | 545 | ||
| 7850 | 9년 전 | 629 | ||
| 7849 | 9년 전 | 393 | ||
| 7848 | 9년 전 | 460 | ||
| 7847 | 9년 전 | 703 | ||
| 7846 | 9년 전 | 491 | ||
| 7845 | 9년 전 | 462 | ||
| 7844 | 9년 전 | 432 | ||
| 7843 | 9년 전 | 469 | ||
| 7842 | 9년 전 | 448 | ||
| 7841 | 9년 전 | 424 | ||
| 7840 | 9년 전 | 433 | ||
| 7839 | 9년 전 | 478 | ||
| 7838 | 9년 전 | 543 | ||
| 7837 | 9년 전 | 381 | ||
| 7836 | 9년 전 | 436 | ||
| 7835 | 10년 전 | 510 | ||
| 7834 |
|
10년 전 | 1221 | |
| 7833 | 10년 전 | 480 | ||
| 7832 | 10년 전 | 456 | ||
| 7831 | 10년 전 | 616 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기