E

프레임에서 사용하면 공간을 절약할 수 있는 폴더 트리형 메뉴 스크립트

프레임에서 사용하면 공간을 절약할 수 있는 폴더 트리형 메뉴 스크립트 입니다
압축 파일을 해제한 후 js 파일에서 메뉴를 설정 하세요

##########
index.html
##########

<!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>
<style>
<!--
body,td{font-size:10pt}
//-->
</style>

<!---- [1단계] 아래 코드를 <HEAD> 와 <HEAD> 태그 사이에 붙여 넣으세요 --->

<script src="tree_2.js"></script>

</head>

<body>

<!--- [2단계] 아래의 코드를 메뉴가 나타나기 원하는 장소에 넣으세요 --->

<script language="JavaScript">initializeDocument();</script>

</body>
</html>

############################
tree_2.js 파일중 메뉴 설정 부분
############################

function gLnk(target, description, linkData, itemImg)
{
fullLink = ""

if (target==0)
{
if(linkData != "")
fullLink = "'"+linkData+"' target="_self"" // 원하는 타겟으로 수정하세요
else
fullLink = "";
}
else
{
if (target==1) {
if(linkData != "")
fullLink = "'http://"+linkData+"' target=_self" // 원하는 타겟으로 수정하세요
else
fullLink = "";

}
else {
if(linkData != "")
fullLink = "'http://"+linkData+"' target="_self"" // 원하는 타겟으로 수정하세요
else
fullLink = "";

}
}

linkItem = new Item(description, fullLink, itemImg)
return linkItem
}

function insFldr(parentFolder, childFolder)
{
return parentFolder.addChild(childFolder)
}

function insDoc(parentFolder, document)
{
parentFolder.addChild(document)
}


USETEXTLINKS = 1;
indexOfEntries = new Array;
nEntries = 0;
doc = document;
browserVersion = 0;
selectedFolder=0;

///////////////////////////// 메뉴 설정 부분 ////////////////////////////////

foldersTree = gFldr("메뉴를 선택 하세요", "jasko")

aux1 = insFldr(foldersTree, gFldr("메인메뉴 -1","jasko"))
insDoc(aux1, gLnk(0, "Script 1", "http://kr.yahoo.com", "leftfolderclosed.gif"))
insDoc(aux1, gLnk(0, "Script 2", "http://kr.yahoo.com", "leftfolderclosed.gif"))
insDoc(aux1, gLnk(0, "Script 3", "http://kr.yahoo.com", "leftfolderclosed.gif"))

aux1 = insFldr(foldersTree, gFldr("메인메뉴 -2","jasko"))
insDoc(aux1, gLnk(0, "Applet 1", "http://kr.yahoo.com", "leftfolderclosed.gif"))
insDoc(aux1, gLnk(0, "Applet 2", "http://kr.yahoo.com", "leftfolderclosed.gif"))
insDoc(aux1, gLnk(0, "Applet 3", "http://kr.yahoo.com", "leftfolderclosed.gif"))

aux1 = insFldr(foldersTree, gFldr("메인메뉴 -3","jasko"))
insDoc(aux1, gLnk(0, "홈페이지마법사", "http://kr.yahoo.com", "leftfolderclosed.gif"))

insDoc(foldersTree, gLnk(0, "부메뉴 없는 메뉴", "http://kr.yahoo.com/", "leftfolderclosed.gif"))

///////////////////////////// 메뉴 설정 부분 ////////////////////////////////<div class='small'>[이 게시물은 관리자님에 의해 2011-10-31 17:16:08 PHP & HTML에서 이동 됨]</div>
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

+
제목 글쓴이 날짜 조회
19년 전 조회 2,516
19년 전 조회 2,427
19년 전 조회 3,120
19년 전 조회 6,802
19년 전 조회 2,748
19년 전 조회 3,223
19년 전 조회 3,124
19년 전 조회 1,959
19년 전 조회 3,394
19년 전 조회 2,222
19년 전 조회 2,740
19년 전 조회 2,395
19년 전 조회 4,403
19년 전 조회 2,512
19년 전 조회 2,786
19년 전 조회 3,549
19년 전 조회 3,752
19년 전 조회 3,278
19년 전 조회 2,507
19년 전 조회 3,072
19년 전 조회 3,935
19년 전 조회 3,814
19년 전 조회 1,750
19년 전 조회 2,234
19년 전 조회 5,447
19년 전 조회 6,746
19년 전 조회 2,585
19년 전 조회 2,144
19년 전 조회 2,634
19년 전 조회 3,292
19년 전 조회 3,540
19년 전 조회 3,009
19년 전 조회 2,636
19년 전 조회 4,749
19년 전 조회 6,753
19년 전 조회 5,024
19년 전 조회 5,985
19년 전 조회 2,708
19년 전 조회 2,524
19년 전 조회 2,234
19년 전 조회 2,342
19년 전 조회 4,636
19년 전 조회 4,687
19년 전 조회 2,550
19년 전 조회 2,213
19년 전 조회 2,538
19년 전 조회 3,156
19년 전 조회 2,954
19년 전 조회 1,924
19년 전 조회 1,996
19년 전 조회 3,183
19년 전 조회 2,393
19년 전 조회 3,662
19년 전 조회 2,592
19년 전 조회 1,889
19년 전 조회 2,508
19년 전 조회 1,760
19년 전 조회 1,434
19년 전 조회 1,577
19년 전 조회 1,847
19년 전 조회 1,609
19년 전 조회 1,815
19년 전 조회 1,599
19년 전 조회 1,984
19년 전 조회 1,882
19년 전 조회 1,482
19년 전 조회 1,482
19년 전 조회 1,398
19년 전 조회 1,261
19년 전 조회 1,441
19년 전 조회 2,018
19년 전 조회 2,430
19년 전 조회 2,919
19년 전 조회 2,340
19년 전 조회 1,841
19년 전 조회 7,071
19년 전 조회 3,766
19년 전 조회 2,371
19년 전 조회 2,386
19년 전 조회 2,880
19년 전 조회 5,805
19년 전 조회 5,590
19년 전 조회 2,277
19년 전 조회 3,325
19년 전 조회 2,891
19년 전 조회 2,243
19년 전 조회 2,762
19년 전 조회 1,613
19년 전 조회 1,772
19년 전 조회 1,870
19년 전 조회 2,039
19년 전 조회 1,716
19년 전 조회 1,857
19년 전 조회 1,812
19년 전 조회 1,881
19년 전 조회 1,562
19년 전 조회 2,687
19년 전 조회 2,019
19년 전 조회 3,276
19년 전 조회 3,303