부드럽게 스크롤 되는 트리구조형 메뉴 스크립트
주메뉴를 클릭하면 하위메뉴가 열리고, 다른 메뉴를 클릭하면 이전 부메뉴들은 닫히게 됩니다
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
<title> jasko sample script </title>
<!---- [1단계] 아래 코드를 <HEAD> 와 <HEAD> 태그 사이에 붙여 넣으세요 --->
<style>
/* 메뉴판의 전체 테두리 설정 */
#main_panel
{
border:1px solid darkblue;
position:relative;
overflow:hidden;
}
/* 주메뉴의 스타일 설정 */
.head_item
{
background-color:gold;
font-size:12px;
font-family:굴림;
font:bold;
border-top:1px solid darkblue;
border-bottom:1px solid darkblue;
position:absolute;
left:0px;
text-align:left;
}
/* 부메뉴의 스타일 설정 */
.item
{
background-color:lightyellow;
font-family:굴림;
font-size:12px;
left:0px;
position:relative;
text-align:left;
}
.item_panel
{
position:absolute;
background-color:lightyellow;
left:0px;
}
.item_panel a
{
text-decoration:none;
color:black;
}
</style>
<script language="JavaScript" src="menu_09.js"></script>
<!------------------------- 여기까지 ------------------------------------>
</head>
<body>
<!---- [2단계] 아래의 방법으로 원하는 위치에 붙여 넣으세요 --->
<script language="JavaScript">
var Link = new Array();
// Link[번호] = "구분|제목:URL|타겟";
// 구분 : 0 = 주메뉴, 1 = 부메뉴
Link[0] = "0|자바스크립트";
Link[1] = "1|홈페이지|http://www.sir.co.kr|_blank";
Link[2] = "1|자바스크립트|www.sir.co.kr|_blank";
Link[3] = "1|자바 애플릿|http://www.sir.co.kr|_blank";
Link[4] = "1|CGI 스크립트|http://www.sir.co.kr|_blank";
Link[5] = "0|게시판들";
Link[6] = "1|묻고 답하고|http://www.sir.co.kr|_blank";
Link[7] = "1|자유 게시판|http://www.sir.co.kr|_blank"
Link[8] = "0|링크 사이트";
Link[9] = "1|다음 커뮤니케이션즈|http://www.sir.co.kr|_blank";
Link[10] = "1|야후 코리아|http://www.sir.co.kr|_blank";
Link[11] = "0|미디어 페이지";
Link[12] = "1|엠비씨 홈페이지|http://www.sir.co.kr|_blank";
Link[13] = "0|신문사 페이지";
Link[14] = "1|조선일보|http://www.sir.co.kr|_blank";
start(1);
</script>
</body>
</html>
<!--- [3단계] menu_09.js 파일을 같은 경로에 업로드 하세요 ---><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="expires" content="-1">
<meta http-equiv="pragma" content="no-cache">
<title> jasko sample script </title>
<!---- [1단계] 아래 코드를 <HEAD> 와 <HEAD> 태그 사이에 붙여 넣으세요 --->
<style>
/* 메뉴판의 전체 테두리 설정 */
#main_panel
{
border:1px solid darkblue;
position:relative;
overflow:hidden;
}
/* 주메뉴의 스타일 설정 */
.head_item
{
background-color:gold;
font-size:12px;
font-family:굴림;
font:bold;
border-top:1px solid darkblue;
border-bottom:1px solid darkblue;
position:absolute;
left:0px;
text-align:left;
}
/* 부메뉴의 스타일 설정 */
.item
{
background-color:lightyellow;
font-family:굴림;
font-size:12px;
left:0px;
position:relative;
text-align:left;
}
.item_panel
{
position:absolute;
background-color:lightyellow;
left:0px;
}
.item_panel a
{
text-decoration:none;
color:black;
}
</style>
<script language="JavaScript" src="menu_09.js"></script>
<!------------------------- 여기까지 ------------------------------------>
</head>
<body>
<!---- [2단계] 아래의 방법으로 원하는 위치에 붙여 넣으세요 --->
<script language="JavaScript">
var Link = new Array();
// Link[번호] = "구분|제목:URL|타겟";
// 구분 : 0 = 주메뉴, 1 = 부메뉴
Link[0] = "0|자바스크립트";
Link[1] = "1|홈페이지|http://www.sir.co.kr|_blank";
Link[2] = "1|자바스크립트|www.sir.co.kr|_blank";
Link[3] = "1|자바 애플릿|http://www.sir.co.kr|_blank";
Link[4] = "1|CGI 스크립트|http://www.sir.co.kr|_blank";
Link[5] = "0|게시판들";
Link[6] = "1|묻고 답하고|http://www.sir.co.kr|_blank";
Link[7] = "1|자유 게시판|http://www.sir.co.kr|_blank"
Link[8] = "0|링크 사이트";
Link[9] = "1|다음 커뮤니케이션즈|http://www.sir.co.kr|_blank";
Link[10] = "1|야후 코리아|http://www.sir.co.kr|_blank";
Link[11] = "0|미디어 페이지";
Link[12] = "1|엠비씨 홈페이지|http://www.sir.co.kr|_blank";
Link[13] = "0|신문사 페이지";
Link[14] = "1|조선일보|http://www.sir.co.kr|_blank";
start(1);
</script>
</body>
</html>
<!--- [3단계] menu_09.js 파일을 같은 경로에 업로드 하세요 ---><div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 16:57:14 JavaScript에서 이동 됨]</div>
댓글 2개
19년 전
킁킁,,자바스크립트 파일은 어디에..?
Elbis
19년 전
파일 올렸습니다..
죄송합니다..ㅎㅎ
죄송합니다..ㅎㅎ
게시판 목록
프로그램
| 번호 | 제목 | 글쓴이 | 날짜 | 조회 |
|---|---|---|---|---|
| 830 |
|
19년 전 | 2181 | |
| 829 |
|
19년 전 | 1915 | |
| 828 |
|
19년 전 | 1807 | |
| 827 |
|
19년 전 | 1654 | |
| 826 |
|
19년 전 | 1846 | |
| 825 |
|
19년 전 | 1886 | |
| 824 |
|
19년 전 | 1943 | |
| 823 |
|
19년 전 | 2687 | |
| 822 |
|
19년 전 | 5316 | |
| 821 |
|
19년 전 | 1720 | |
| 820 |
|
19년 전 | 1573 | |
| 819 |
|
19년 전 | 1434 | |
| 818 |
|
19년 전 | 1594 | |
| 817 |
|
19년 전 | 1520 | |
| 816 |
|
19년 전 | 1442 | |
| 815 |
|
19년 전 | 1457 | |
| 814 |
|
19년 전 | 1377 | |
| 813 |
|
19년 전 | 1441 | |
| 812 | 19년 전 | 2815 | ||
| 811 |
pearly
|
19년 전 | 3831 | |
| 810 |
pearly
|
19년 전 | 5208 | |
| 809 |
|
19년 전 | 1374 | |
| 808 |
pearly
|
19년 전 | 4539 | |
| 807 | 19년 전 | 2978 | ||
| 806 |
|
19년 전 | 1497 | |
| 805 |
|
19년 전 | 2690 | |
| 804 |
|
19년 전 | 3616 | |
| 803 |
|
19년 전 | 1798 | |
| 802 |
|
19년 전 | 3789 | |
| 801 |
|
19년 전 | 1881 | |
| 800 | 19년 전 | 3770 | ||
| 799 | 19년 전 | 3431 | ||
| 798 | 19년 전 | 4204 | ||
| 797 | 19년 전 | 4057 | ||
| 796 |
|
19년 전 | 1892 | |
| 795 |
|
19년 전 | 1848 | |
| 794 | 19년 전 | 4274 | ||
| 793 | 19년 전 | 2667 | ||
| 792 | 19년 전 | 2542 | ||
| 791 | 19년 전 | 2393 | ||
| 790 | 19년 전 | 1970 | ||
| 789 | 19년 전 | 2587 | ||
| 788 | 19년 전 | 2202 | ||
| 787 | 19년 전 | 1845 | ||
| 786 | 19년 전 | 1971 | ||
| 785 | 19년 전 | 1441 | ||
| 784 |
|
19년 전 | 1693 | |
| 783 | 19년 전 | 2835 | ||
| 782 |
|
19년 전 | 1954 | |
| 781 | 19년 전 | 3244 | ||
| 780 | 19년 전 | 3153 | ||
| 779 |
|
19년 전 | 2241 | |
| 778 |
|
19년 전 | 1794 | |
| 777 | 19년 전 | 2835 | ||
| 776 | 19년 전 | 2898 | ||
| 775 | 19년 전 | 4016 | ||
| 774 |
|
19년 전 | 1973 | |
| 773 | 19년 전 | 2620 | ||
| 772 | 19년 전 | 2337 | ||
| 771 | 19년 전 | 3468 | ||
| 770 |
|
19년 전 | 1430 | |
| 769 | 19년 전 | 1494 | ||
| 768 | 19년 전 | 1767 | ||
| 767 | 19년 전 | 2202 | ||
| 766 | 19년 전 | 1832 | ||
| 765 | 19년 전 | 1693 | ||
| 764 |
|
19년 전 | 2105 | |
| 763 |
|
19년 전 | 2214 | |
| 762 |
|
19년 전 | 4963 | |
| 761 | 19년 전 | 2326 | ||
| 760 |
|
19년 전 | 3192 | |
| 759 | 19년 전 | 2640 | ||
| 758 |
|
19년 전 | 2405 | |
| 757 | 19년 전 | 4697 | ||
| 756 | 19년 전 | 2560 | ||
| 755 |
|
19년 전 | 2412 | |
| 754 |
|
19년 전 | 1949 | |
| 753 |
|
19년 전 | 1730 | |
| 752 |
pearly
|
19년 전 | 3367 | |
| 751 | 19년 전 | 2342 | ||
| 750 |
|
19년 전 | 6156 | |
| 749 | 19년 전 | 2023 | ||
| 748 |
|
19년 전 | 1899 | |
| 747 |
|
19년 전 | 2704 | |
| 746 |
|
19년 전 | 1811 | |
| 745 | 19년 전 | 2280 | ||
| 744 | 19년 전 | 2110 | ||
| 743 |
|
19년 전 | 3562 | |
| 742 | 19년 전 | 2578 | ||
| 741 | 19년 전 | 2743 | ||
| 740 |
|
19년 전 | 4364 | |
| 739 | 19년 전 | 3546 | ||
| 738 |
|
19년 전 | 2305 | |
| 737 | 19년 전 | 4305 | ||
| 736 | 19년 전 | 3266 | ||
| 735 |
홀로남은자
|
19년 전 | 4135 | |
| 734 |
홀로남은자
|
19년 전 | 2022 | |
| 733 |
홀로남은자
|
19년 전 | 2227 | |
| 732 | 19년 전 | 2139 | ||
| 731 | 19년 전 | 3352 |
댓글 작성
댓글을 작성하시려면 로그인이 필요합니다.
로그인하기