document.htm
来自「非常好的JAVASCRIPT树型」· HTM 代码 · 共 427 行 · 第 1/4 页
HTM
427 行
<html>
<head>
<link rel="stylesheet" href="ftEssstyle.css">
<!-- Infrastructure code for the tree -->
<script language = "Javascript" src = "../ft.js"></script>
<script language = "Javascript" src = "../ftoptions.js"></script>
<script>
function helpdoc(docname,identifier,description) //constructor
{
//constant data
this.docname = docname
this.description = description
this.identifier = identifier
this.drawdoc = drawdoc
}
function drawdoc(){
var dstrbuf = "<HTML><HEAD><TITLE>" + this.docname + "</TITLE><link rel='stylesheet' href='ftEssstyle.css'></HEAD><BODY><P>"
dstrbuf += "<CENTER><H1>" + this.docname + "</H1></CENTER><BR>"
dstrbuf += this.description
dstrbuf += "</BODY></HTML>"
self.basefrm.window.document.write(dstrbuf)
self.basefrm.window.document.close()
}
function adddoc(docname, identifier, description) {
newdoc = new helpdoc(docname, identifier, description)
indexofDoc[nDoc] = newdoc
idofDoc[nDoc] = identifier
nDoc++
return newdoc
}
function outputdoc(id) {
var found = false
for (var i=0; i < nDoc; i++)
{
if (idofDoc[i] == id)
{
found = true
indexofDoc[i].drawdoc()
}
}
if (!found) {
locstr = location.href
int1 = locstr.lastIndexOf("/")
int1 = Math.max(locstr.lastIndexOf("\\"),int1)
locstr = locstr.substring(0,int1+1)
int2 = id.lastIndexOf("\.htm")
if (int2 > 0)
self.basefrm.window.location.href = locstr+id
else
{
if (bV == 2) self.basefrm.window.location.href = "view-source:" + locstr+id
else if (bV == 1) self.basefrm.window.location.href = locstr+id
else window.open(locstr+id,"")
}
}
}
indexofDoc = new Array()
idofDoc = new Array()
nDoc = 0
</script>
<script>
iconFolder = "../images/"
ftFolder = "../"
commonLink = "javascript:parent.outputdoc("
styleSheetFile = "ftEssstyle.css"
bodyOption = 'BGCOLOR="#FFFFFF" BACKGROUND = "Essback.gif"'
useTextLinks = 1
fT = gFld("<i>Folder Tree Documentation</i>", "")
insDoc(fT, gLnk("Quick start", "1)"))
aux1 = insFld(fT, gFld("Overview", ""))
insDoc(aux1, gLnk("Background", "2)"))
insDoc(aux1, gLnk("Browser support", "3)"))
insDoc(aux1, gLnk("Configurability", "4)"))
insDoc(aux1, gLnk("Applications", "5)"))
insDoc(aux1, gLnk("Performance", "6)"))
insDoc(aux1, gLnk("Limitations", "7)"))
insDoc(aux1, gLnk("Audience", "8)"))
insDoc(aux1, gLnk("Reference sites", "9)"))
insDoc(aux1, gLnk("Architecture", "12)"))
insDoc(fT, gLnk("Design tool", "64)"))
aux1 = insFld(fT, gFld("Technical Details", ""))
aux2 = insFld(aux1, gFld("Defining the menu structure", ""))
insDoc(aux2, gLnk("Description", "13)"))
insDoc(aux2, gLnk("Defining folders and documents", "14)"))
aux2 = insFld(aux1, gFld("Setting icons", ""))
insDoc(aux2, gLnk("Setting default icons", "15)"))
insDoc(aux2, gLnk("Setting individual folder and item icons", "16)"))
aux2 = insFld(aux1, gFld("Setting fonts", ""))
insDoc(aux2, gLnk("Setting default fonts", "17)"))
insDoc(aux2, gLnk("Setting individual folder and item icons", "18)"))
aux2 = insFld(aux1, gFld("Setting other node options", ""))
insDoc(aux2, gLnk("Setting folder open state", "19)"))
insDoc(aux2, gLnk("Setting node target frame", "22)"))
insDoc(aux2, gLnk("Setting node link type", "20)"))
insDoc(aux2, gLnk("Setting status bar text", "21)"))
insDoc(aux2, gLnk("Setting user defined data", "61)"))
insDoc(aux2, gLnk("Getting user defined data", "62)"))
aux2 = insFld(aux1, gFld("Setting cascading node options", ""))
insDoc(aux2, gLnk("Setting node width", "201)"))
insDoc(aux2, gLnk("Setting node height", "202)"))
insDoc(aux2, gLnk("Setting node background image", "203)"))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?