메뉴 건너뛰기

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
번호 제목 날짜 조회 수
127 배너 램덤으로 부여주기 2014.03.01 5911
126 도메인 체크 2016.12.22 5928
125 주민등록번호 체크 file 2014.03.01 5929
124 iframe을 리로드 하자! 2014.03.01 5933
123 버튼 삭제 2015.02.03 5951
122 함수의 arguments 를 이름(key)으로 접근하기 2016.09.21 5976
121 iframe 자동 리사이즈 2014.03.01 5992
120 새로고침(F5) 금지 2018.03.28 6001
119 부드럽게 페이지 이동하기 2016.09.11 6003
118 셀렉트(select) change 이벤트 (split) 2016.12.23 6009
117 'open', 새창을 열어보자! file 2015.02.03 6036
116 엔코딩/디코딩 함수 2016.09.21 6040
115 input 테그안의 숫자 3자리 마다 콤마 찍기 2014.03.01 6077
114 해상도에 따라 배경 바꾸기 2014.03.01 6083
113 구구단 반복문,조건문 변경해서 만들기 2016.09.11 6091
112 현재시간 기준 날짜 계산 2016.09.21 6103
111 유효성 검사, 모든 폼에 값이 입력되도록 해보자! file 2015.02.03 6125
110 textarea의 글자수 제한 2014.02.27 6161
109 JDK6 (Java SE Development Kit 6)이하 버전 다운로드 주소 file 2016.09.11 6165
108 자바스크립트로 네트워크 연결 확인하기 (Navigator onLine Property) file 2015.06.19 6197
Board Pagination Prev 1 2 3 4 5 6 7 8 9 10 11 ... 13 Next
/ 13

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

© k2s0o1d4e0s2i1g5n. All Rights Reserved