Home > php教程 > php手册 > 接前代码

接前代码

WBOY
Release: 2016-06-13 09:59:15
Original
1118 people have browsed it

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()

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template