首頁 >後端開發 >php教程 >接前代码_PHP教程

接前代码_PHP教程

WBOY
WBOY原創
2016-07-13 10:59:581075瀏覽

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

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/631842.htmlTechArticlefunction outputFolderLink() { if(this.hreference this.target) { doc.write(A HREF=' + this.hreference + ' TARGET=+this.target.name+ ) if(browserVersion 0) { doc.write(onClick='JavaSc...
陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn