
<html>
<head>
<title>3단 레이어</title>
</head>
<body class="frameBody">
<head>
<title>3단 레이어</title>
</head>
<body class="frameBody">
<script type="text/javascript">
var WM_BOTTOM = "bottom";
var WM_RIGHT = "right";
var MARGIN_BOTTOM = 1;
var MARGIN_RIGHT = 1;
var currentItem = null;
var menuTrail = new Array();
var currentStyleOff = null;
var MARGIN_RIGHT = 1;
var currentItem = null;
var menuTrail = new Array();
var currentStyleOff = null;
function wmItemOn(item, level, styleOn, styleOff, submenuId, submenuPosition) {
debug("level:" + level + ", styleOn:" + styleOn + ", styleOff:" + styleOff + ", submenu:" + submenuId + "/" + submenuPosition);
stopOffTimer();
// turn off previous item
if (currentItem != null) {
if (styleOff != currentStyleOff && currentStyleOff != null) {
currentItem.className = currentStyleOff;
} else {
currentItem.className = styleOff;
}
}
if (currentItem != null) {
if (styleOff != currentStyleOff && currentStyleOff != null) {
currentItem.className = currentStyleOff;
} else {
currentItem.className = styleOff;
}
}
// make this item new current item
currentItem = item;
item.className = styleOn;
currentStyleOff = styleOff;
currentItem = item;
item.className = styleOn;
currentStyleOff = styleOff;
if (submenuId != null) {
// take care of attached submenu
hide(level);
var menu = document.getElementById(submenuId);
// item dimensions: item.offsetHeight, item.offsetWidth
if (submenuPosition == WM_BOTTOM) {
menu.style.top = findOffsetTop(item) + item.offsetHeight + MARGIN_BOTTOM;
menu.style.left = findOffsetLeft(item);
}
if (submenuPosition == WM_BOTTOM) {
menu.style.top = findOffsetTop(item) + item.offsetHeight + MARGIN_BOTTOM;
menu.style.left = findOffsetLeft(item);
}
if (submenuPosition == WM_RIGHT) {
menu.style.top = findOffsetTop(item);
menu.style.left = findOffsetLeft(item) + item.offsetWidth + MARGIN_RIGHT;
}
menu.style.top = findOffsetTop(item);
menu.style.left = findOffsetLeft(item) + item.offsetWidth + MARGIN_RIGHT;
}
menu.style.visibility = "visible";
menuTrail[level] = menu;
} else {
hide(level);
}
} else {
hide(level);
}
}
function hide(level) {
for (var i = level; i < menuTrail.length; i++) {
menuTrail[i].style.visibility = "hidden";
}
}
for (var i = level; i < menuTrail.length; i++) {
menuTrail[i].style.visibility = "hidden";
}
}
var timerID = null;
var timerOn = false;
var timecount = 250;
var timerOn = false;
var timecount = 250;
function wmStartOffTimer() {
if (timerOn == false) {
timerID = setTimeout("offAll()", timecount);
timerOn = true;
}
}
if (timerOn == false) {
timerID = setTimeout("offAll()", timecount);
timerOn = true;
}
}
function stopOffTimer() {
if (timerOn) {
clearTimeout(timerID);
timerID = null;
timerOn = false;
}
}
if (timerOn) {
clearTimeout(timerID);
timerID = null;
timerOn = false;
}
}
function offAll() {
hide(0);
if (currentStyleOff != null) {
currentItem.className = currentStyleOff;
}
debug("All off by timer.");
}
hide(0);
if (currentStyleOff != null) {
currentItem.className = currentStyleOff;
}
debug("All off by timer.");
}
var debugId = "wmDebug";
function debug(text) {
var debug = document.getElementById(debugId);
if (debug != null) {
debug.innerHTML = "» " + text + "<br>" + debug.innerHTML;
}
}
var debug = document.getElementById(debugId);
if (debug != null) {
debug.innerHTML = "» " + text + "<br>" + debug.innerHTML;
}
}
function findOffsetLeft(obj){
var curleft = 0;
if (obj.offsetParent){
while (obj.offsetParent){
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}else if (obj.x){
curleft += obj.x;
}
var curleft = 0;
if (obj.offsetParent){
while (obj.offsetParent){
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
}else if (obj.x){
curleft += obj.x;
}
return curleft;
}
}
// Find total top offset.
function findOffsetTop(obj){
var curtop = 0;
if (obj.offsetParent) {
while (obj.offsetParent){
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}else if (obj.y){
curtop += obj.y;
}
function findOffsetTop(obj){
var curtop = 0;
if (obj.offsetParent) {
while (obj.offsetParent){
curtop += obj.offsetTop
obj = obj.offsetParent;
}
}else if (obj.y){
curtop += obj.y;
}
return curtop;
}
}
</script>
<style>
.wmSubMenuHidden {position:absolute;visibility:hidden;}
.hItemOn {width:100px;padding:3px;background:#DCDCDC;cursor:pointer;}
.hItemOff {width:100px;padding:3px;background:#F0F0F0;cursor:pointer;}
.vItemOn {width:100px;padding:3px;background:#FFFFE6;border:1px solid #336699;cursor:pointer;}
.vItemOff {width:100px;padding:3px;background:#FFFFE6;cursor:pointer;}
</style>
.wmSubMenuHidden {position:absolute;visibility:hidden;}
.hItemOn {width:100px;padding:3px;background:#DCDCDC;cursor:pointer;}
.hItemOff {width:100px;padding:3px;background:#F0F0F0;cursor:pointer;}
.vItemOn {width:100px;padding:3px;background:#FFFFE6;border:1px solid #336699;cursor:pointer;}
.vItemOff {width:100px;padding:3px;background:#FFFFE6;cursor:pointer;}
</style>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,0,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 00</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,0,'vItemOn','vItemOff','vSubmenu1',WM_RIGHT);" onMouseOut="wmStartOffTimer();">MENU 01 »</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,0,'vItemOn','vItemOff','vSubmenu2',WM_RIGHT);" onMouseOut="wmStartOffTimer();">MENU 02 »</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,0,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 03</div>
<div id="vSubmenu1" class="wmSubMenuHidden">
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 11</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 12</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff','vSubmenu3',WM_RIGHT);" onMouseOut="wmStartOffTimer();">MENU 13 »</div>
</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 11</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 12</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff','vSubmenu3',WM_RIGHT);" onMouseOut="wmStartOffTimer();">MENU 13 »</div>
</div>
<div id="vSubmenu2" class="wmSubMenuHidden">
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 21</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 22</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 23</div>
</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 21</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 22</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,1,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 23</div>
</div>
<div id="vSubmenu3" class="wmSubMenuHidden">
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 31</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 32</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 33</div>
</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 31</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 32</div>
<div class="vItemOff" onClick="javascript:window.location='#'" onmouseover="javascript:wmItemOn(this,2,'vItemOn','vItemOff',null,null);" onMouseOut="wmStartOffTimer();">MENU 33</div>
</div>
</body>
</html>
</html>
첨부파일
3.html (11.9 KB, 5회)게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 6530 |
퍼블리셔강
|
12년 전 | 642 | |
| 6529 | 12년 전 | 1299 | ||
| 6528 | 12년 전 | 618 | ||
| 6527 | 12년 전 | 788 | ||
| 6526 | 12년 전 | 6576 | ||
| 6525 | 12년 전 | 548 | ||
| 6524 | 12년 전 | 835 | ||
| 6523 | 12년 전 | 481 | ||
| 6522 | 12년 전 | 529 | ||
| 6521 | 12년 전 | 797 | ||
| 6520 | 12년 전 | 734 | ||
| 6519 | 12년 전 | 1737 | ||
| 6518 |
가슴시린하늘
|
12년 전 | 1722 | |
| 6517 | 12년 전 | 1359 | ||
| 6516 | 12년 전 | 5223 | ||
| 6515 | 12년 전 | 1494 | ||
| 6514 | 12년 전 | 1594 | ||
| 6513 | 12년 전 | 948 | ||
| 6512 | 12년 전 | 1971 | ||
| 6511 | 12년 전 | 1365 | ||
| 6510 | 12년 전 | 3053 | ||
| 6509 |
프로프리랜서
|
12년 전 | 2547 | |
| 6508 |
프로프리랜서
|
12년 전 | 1897 | |
| 6507 |
프로프리랜서
|
12년 전 | 2371 | |
| 6506 |
프로프리랜서
|
12년 전 | 1851 | |
| 6505 |
프로프리랜서
|
12년 전 | 1629 | |
| 6504 | 12년 전 | 1019 | ||
| 6503 | 12년 전 | 1125 | ||
| 6502 |
프로프리랜서
|
12년 전 | 5551 | |
| 6501 |
프로프리랜서
|
12년 전 | 2595 | |
| 6500 |
프로프리랜서
|
12년 전 | 3079 | |
| 6499 |
프로프리랜서
|
12년 전 | 1746 | |
| 6498 |
프로프리랜서
|
12년 전 | 1459 | |
| 6497 | 12년 전 | 801 | ||
| 6496 |
yunkiri486
|
12년 전 | 1806 | |
| 6495 | 12년 전 | 915 | ||
| 6494 | 12년 전 | 1490 | ||
| 6493 | 12년 전 | 2758 | ||
| 6492 |
오늘도망했다
|
12년 전 | 2335 | |
| 6491 |
오늘도망했다
|
12년 전 | 1677 | |
| 6490 |
오늘도망했다
|
12년 전 | 6654 | |
| 6489 |
오늘도망했다
|
12년 전 | 2491 | |
| 6488 |
홈피119
|
12년 전 | 697 | |
| 6487 | 12년 전 | 661 | ||
| 6486 | 12년 전 | 1406 | ||
| 6485 | 12년 전 | 2049 | ||
| 6484 | 12년 전 | 896 | ||
| 6483 | 12년 전 | 703 | ||
| 6482 | 12년 전 | 1332 | ||
| 6481 | 12년 전 | 1463 | ||
| 6480 |
Header
|
12년 전 | 687 | |
| 6479 |
|
12년 전 | 1123 | |
| 6478 |
개초보제이
|
12년 전 | 1390 | |
| 6477 | 12년 전 | 781 | ||
| 6476 | 12년 전 | 1071 | ||
| 6475 | 12년 전 | 3669 | ||
| 6474 | 12년 전 | 1417 | ||
| 6473 | 12년 전 | 959 | ||
| 6472 | 12년 전 | 842 | ||
| 6471 |
AMDbest
|
12년 전 | 1202 | |
| 6470 |
jinmuk
|
12년 전 | 1443 | |
| 6469 |
jinmuk
|
12년 전 | 4242 | |
| 6468 |
jinmuk
|
12년 전 | 5567 | |
| 6467 | 12년 전 | 688 | ||
| 6466 |
jinmuk
|
12년 전 | 2262 | |
| 6465 |
jinmuk
|
12년 전 | 6728 | |
| 6464 |
jinmuk
|
12년 전 | 2403 | |
| 6463 |
jinmuk
|
12년 전 | 9318 | |
| 6462 |
희망과열정
|
12년 전 | 521 | |
| 6461 |
Header
|
12년 전 | 721 | |
| 6460 |
희망과열정
|
12년 전 | 1348 | |
| 6459 |
프리랜서개발자
|
12년 전 | 1666 | |
| 6458 | 12년 전 | 1321 | ||
| 6457 |
jinmuk
|
12년 전 | 1932 | |
| 6456 |
jinmuk
|
12년 전 | 2336 | |
| 6455 |
jinmuk
|
12년 전 | 3190 | |
| 6454 |
jinmuk
|
12년 전 | 2161 | |
| 6453 |
jinmuk
|
12년 전 | 2337 | |
| 6452 |
jinmuk
|
12년 전 | 2304 | |
| 6451 |
jinmuk
|
12년 전 | 1586 | |
| 6450 |
jinmuk
|
12년 전 | 1392 | |
| 6449 |
jinmuk
|
12년 전 | 1035 | |
| 6448 |
jinmuk
|
12년 전 | 1228 | |
| 6447 |
jinmuk
|
12년 전 | 2002 | |
| 6446 |
jinmuk
|
12년 전 | 1561 | |
| 6445 |
jinmuk
|
12년 전 | 1260 | |
| 6444 |
jinmuk
|
12년 전 | 2303 | |
| 6443 |
jinmuk
|
12년 전 | 2041 | |
| 6442 |
jinmuk
|
12년 전 | 1882 | |
| 6441 |
jinmuk
|
12년 전 | 1614 | |
| 6440 |
jinmuk
|
12년 전 | 2314 | |
| 6439 |
jinmuk
|
12년 전 | 1132 | |
| 6438 |
wndProc
|
12년 전 | 772 | |
| 6437 | 12년 전 | 391 | ||
| 6436 |
senseme
|
12년 전 | 539 | |
| 6435 | 12년 전 | 1043 | ||
| 6434 | 12년 전 | 2471 | ||
| 6433 | 12년 전 | 2479 | ||
| 6432 | 12년 전 | 1556 | ||
| 6431 |
밥먹고합시다
|
12년 전 | 1181 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기