接前代码_PHP教程
程序员文章站
2024-02-12 23:33:34
...
function outputFolderLink() {
if(this.hreference && this.target) {
doc.write(" if(browserVersion > 0) {
doc.write("onClick='JavaScript: clickOnFolder("+this.id+")'")
}
doc.write(">")
}
else
doc.write("")
}
function addChild(childNode) {
selectfile[fEntries]=childNode.desc;
fEntries++;
this.children[this.nChildren] = childNode;
this.nChildren++;
return(childNode);
}
function folderSubEntries() {
var i = 0;
var se = this.nChildren;
for(i = 0; i if(this.children[i].children) //is a folder
se = se + this.children[i].subEntries();
}
return(se)
}
// Definition of class Item (a document or link inside a Folder)
function Item(itemDescription, hreference, itemLink, itemImg,parentid) // Constructor
{
// constant data
this.desc = itemDescription
this.link = itemLink
this.hreference = hreference;
this.id =index;
this.navObj = 0; //initialized in render()
if(this.hreference && this.target) {
doc.write(" if(browserVersion > 0) {
doc.write("onClick='JavaScript: clickOnFolder("+this.id+")'")
}
doc.write(">")
}
else
doc.write("")
}
function addChild(childNode) {
selectfile[fEntries]=childNode.desc;
fEntries++;
this.children[this.nChildren] = childNode;
this.nChildren++;
return(childNode);
}
function folderSubEntries() {
var i = 0;
var se = this.nChildren;
for(i = 0; i if(this.children[i].children) //is a folder
se = se + this.children[i].subEntries();
}
return(se)
}
// Definition of class Item (a document or link inside a Folder)
function Item(itemDescription, hreference, itemLink, itemImg,parentid) // Constructor
{
// constant data
this.desc = itemDescription
this.link = itemLink
this.hreference = hreference;
this.id =index;
this.navObj = 0; //initialized in render()
上一篇: mybatis使用小贴士