메뉴 건너뛰기

2014.03.01 21:49

샘플) top left menu

조회 수 5513 추천 수 0 댓글 0
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml2/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> stu nicholls dot com | menu - two step </title>
<meta name="Author" content="Stu Nicholls" />

<!-- <link rel="stylesheet" media="all" type="text/css" href="two_step/two_step.css" /> -->
<!-- <script src="two_step/two_step.js" type="text/javascript"></script> -->
<style>
#gallery {font:11px verdana,arial,sans-serif; width:750px; padding:0; line-height:15px; height:33px;}

#gallery div.off {color:#000; height:33px; margin-right:2px; line-height:33px; padding:0 20px; float:right; background:url('two_step/tabs_0.gif') repeat-x left bottom; border:1px solid #ddd; cursor:pointer; position:relative; z-index:20;}
#gallery div.on {color:#c00; padding:0 20px; margin-right:2px; float:right; background:url('two_step/tabs_2.gif') repeat-x left bottom; cursor:pointer; height:33px; line-height:32px; border:1px solid #ddd; position:relative; z-index:100;}

div.hide {display:none; width:0; overflow:hidden;}
div.show {clear:left; background:#fff; width:127px; margin-top:20px; position:relative; z-index:50; font:11px verdana, arial, sans-serif; line-height:18px;}
div.show ul {margin:0; padding:0; list-style:none; width:127px; position:relative;}
div.show ul li {width:127px; height:30px; background:url('two_step/side_1.gif'); margin:1px 0 0 0;}
div.show ul li a, div.show ul li a:visited {display:block; width:127px; height:30px; line-height:27px; background:url('two_step/side_0.gif'); color:#000; text-align:center; text-decoration:none;}
div.show ul li a:hover {background:transparent; color:#c00; white-space:nowrap; line-height:29px;}

div.show ul li a span {display:none;}
div.show ul li a:hover span {display:block; position:absolute; left:200px; top:0;}
div.show ul li a:hover span img {border:1px solid #000;}
.clear {clear:both;}
</style>
<script type="text/javascript">
<!--
    onload = function() {
        var e, i = 0;
        while (e = document.getElementById('gallery').getElementsByTagName ('DIV') [i++]) {
            if (e.className == 'on' || e.className == 'off') {
            e.onclick = function () {
                var getEls = document.getElementsByTagName('DIV');
                    for (var z=0; z<getEls.length; z++) {
                    getEls[z].className=getEls[z].className.replace('show', 'hide');
                    getEls[z].className=getEls[z].className.replace('on', 'off');
                    }
                this.className = 'on';
                var max = this.getAttribute('title');
                document.getElementById(max).className = "show";
                }
            }
        }
    }
//-->
</script>
</head>

<body>
<div id="gallery">
<div class="off" title="Constable"><span>John Constable</span></div>
<div class="off" title="Monet"><span>Claude Monet</span></div>
<div class="off" title="Vincent"><span>Vincent Van Gogh</span></div>
<div class="off" title="Chagall"><span>Marc Chagall</span></div>
<div class="on" title="Picasso"><span>Pablo Picasso</span></div>
</div>

<div id="Constable" class="hide">
    <ul>
        <li><a href="#nogo">Constable #1<span><img src="two_step/constable.jpg" alt="constable painting" /></span></a></li>
        <li><a href="#nogo">Constable #2<span><img src="two_step/constable1.jpg" alt="constable painting" /></span></a></li>
        <li><a href="#nogo">Constable #3<span><img src="two_step/constable2.jpg" alt="constable painting" /></span></a></li>
        <li><a href="#nogo">Constable #4<span><img src="two_step/constable3.jpg" alt="constable painting" /></span></a></li>
        <li><a href="#nogo">Constable #5<span><img src="two_step/constable4.jpg" alt="constable painting" /></span></a></li>
        <li><a href="#nogo">Constable #6<span><img src="two_step/constable5.jpg" alt="constable painting" /></span></a></li>
    </ul>
</div>

<div id="Monet" class="hide">
    <ul>
        <li><a href="#nogo">Monet #1<span><img src="two_step/monet.jpg" alt="monet painting" /></span></a></li>
        <li><a href="#nogo">Monet #2<span><img src="two_step/monet1.jpg" alt="monet painting" /></span></a></li>
        <li><a href="#nogo">Monet #3<span><img src="two_step/monet2.jpg" alt="monet painting" /></span></a></li>
        <li><a href="#nogo">Monet #4<span><img src="two_step/monet3.jpg" alt="monet painting" /></span></a></li>
        <li><a href="#nogo">Monet #5<span><img src="two_step/monet4.jpg" alt="monet painting" /></span></a></li>
    </ul>
</div>

<div id="Vincent" class="hide">
    <ul>
        <li><a href="#nogo">Van Gogh #1<span><img src="two_step/vincent.jpg" alt="vincent van gogh painting" /></span></a></li>
        <li><a href="#nogo">Van Gogh #2<span><img src="two_step/vincent1.jpg" alt="vincent van gogh painting" /></span></a></li>
        <li><a href="#nogo">Van Gogh #3<span><img src="two_step/vincent2.jpg" alt="vincent van gogh painting" /></span></a></li>
        <li><a href="#nogo">Van Gogh #4<span><img src="two_step/vincent3.jpg" alt="vincent van gogh painting" /></span></a></li>
    </ul>
</div>

<div id="Chagall" class="hide">
    <ul>
        <li><a href="#nogo">Chagall #1<span><img src="two_step/chagall.jpg" alt="chagall painting" /></span></a></li>
        <li><a href="#nogo">Chagall #2<span><img src="two_step/chagall1.jpg" alt="chagall painting" /></span></a></li>
        <li><a href="#nogo">Chagall #3<span><img src="two_step/chagall2.jpg" alt="chagall painting" /></span></a></li>
        <li><a href="#nogo">Chagall #4<span><img src="two_step/chagall3.jpg" alt="chagall painting" /></span></a></li>
        <li><a href="#nogo">Chagall #5<span><img src="two_step/chagall4.jpg" alt="chagall painting" /></span></a></li>
    </ul>
</div>

<div id="Picasso" class="show">
    <ul>
        <li><a href="#nogo">Picasso #1<span><img src="two_step/picasso.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #2<span><img src="two_step/picasso1.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #3<span><img src="two_step/picasso2.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #4<span><img src="two_step/picasso3.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #5<span><img src="two_step/picasso4.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #6<span><img src="two_step/picasso5.jpg" alt="picasso painting" /></span></a></li>
        <li><a href="#nogo">Picasso #7<span><img src="two_step/picasso6.jpg" alt="picasso painting" /></span></a></li>
    </ul>
</div>


<p>&copy; 2007 stunicholls.com</p>


</body>
</html>

List of Articles
번호 제목 날짜 조회 수
107 예제 - 자바스크립트로 현재 달의 달력 만들기 (calendar) 2015.06.19 10061
106 마우스 드래그, 오른쪽 팝업메뉴, 선택 막기 (IE11, 파이어폭스, 크롬 확인) 2015.06.19 8566
105 Checkbox : 체크박스 체크여부 확인 file 2015.06.19 19010
104 텍스트박스(input type = "text") 숫자 증가, 감소 시키기 - 쇼핑몰 주문 수량 file 2015.06.19 12281
103 정규식을 이용한 콤마(comma) 제거하기 2015.06.19 6804
102 정규식을 이용한 실시간 콤마(comma) 넣기 2015.06.19 7876
101 자바스크립트로 네트워크 연결 확인하기 (Navigator onLine Property) file 2015.06.19 6197
100 location.href 로 새창 여는 방법 (target=_blank 효과) 2015.06.19 9390
99 CheckBox 전체 선택 & 해제 2015.04.28 5580
98 선택(CheckBox) 된 Row 삭제 - 화면에서 추가된 Row 2015.04.28 13536
97 선택된 데이터 부모창에 넘기기 (iframe ☞ 부모창) 2015.04.28 6614
96 2단계 트리메뉴 마우스오버(mouseover), 온포커스(onfocus) 구현 2015.04.06 8200
95 jquery 메뉴 - 아래로 한번에 전체가 펼처짐 file 2015.04.06 11698
94 자바스크립트 이벤트 목록입니다. ( javascript event ) 2015.04.06 5596
93 '레이블', 반복문을 제어하자! file 2015.02.03 5540
92 'Array', 배열 및 다차원 배열 선언에 대해 알아보자! 2015.02.03 11110
91 배열의 리터럴 선언, 또다른 배열 선언 방법! 2015.02.03 6408
90 '문자 ↔ 숫자', 타입을 바꿔보자! 2015.02.03 6207
89 드롭다운 메뉴를 만들어보자! -1탄 file 2015.02.03 8168
88 'onmouseover', 마우스 오버 효과 - 글씨 바꾸기! file 2015.02.03 9433
Board Pagination Prev 1 ... 3 4 5 6 7 8 9 10 11 12 13 Next
/ 13

하단 정보를 입력할 수 있습니다

© k2s0o1d4e0s2i1g5n. All Rights Reserved