首页 > 后端开发 > php教程 > 接前代码_PHP教程

接前代码_PHP教程

WBOY
发布: 2016-07-13 10:59:58
原创
1078 人浏览过

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...
相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板