首页 > 开发 > 综合 > 正文

Coalesys.WebMenu source code(partial)(2)

2024-07-21 02:16:55
字体:
来源:转载
供稿:网友


writer.csf_11("document.cswmselects=document.getelementsbytagname(/"select/");");
    writer.csf_11("}");
    writer.csf_11("var icount=0;");
    writer.csf_11("for(icount=0;icount<document.cswmselects.length;icount++)");
    writer.csf_11("{");
    writer.csf_11("if(boolhide==true)");
    writer.csf_11("{");
    writer.csf_11("document.cswmselects[icount].style.visibility=/"hidden/";");
    writer.csf_11("}");
    writer.csf_11("if(boolhide==false)");
    writer.csf_11("{");
    writer.csf_11("document.cswmselects[icount].style.visibility=/"visible/";");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("function cswmsp(id,itemid)");
    writer.csf_11("{");
    if (local6)
        writer.csf_11("cswmhideselectbox(true);");
    writer.csf_11("if(!itemid)");
    writer.csf_11("{");
    local60 = local1;
    switch (local60 - 1) {
        case 0:
            writer.csf_11("cleartimeout(cswmtti);");
            break;
        break;
        case 1:
            writer.csf_11("cleartimeout(cswmtti);");
        break;
    }
    writer.csf_11("if(cswmfp)");
    writer.csf_11("{");
    writer.csf_11("cswmsel=cswmxoff;");
    writer.csf_11("cswmset=cswmyoff;");
    writer.csf_11("cswmseh=1;");
    writer.csf_11("cswmsew=1;");
    writer.csf_11("cswmfp=0;");
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
    writer.csf_11("cswmse=new object(document.all[cswmsi]);");
    writer.csf_11("var cswmpro=cswmse;");
    writer.csf_11("var cswmprt=/"/";");
    writer.csf_11("cswmsel=cswmse.offsetleft+cswmxoff;");
    writer.csf_11("cswmset=cswmse.offsettop+cswmyoff;");
    writer.csf_11("cswmseh=cswmse.offsetheight;");
    writer.csf_11("cswmsew=cswmse.offsetwidth;");
    writer.csf_11("while(cswmprt!=/"body/")");
    writer.csf_11("{");
    writer.csf_11("cswmpro=cswmpro.offsetparent;");
    writer.csf_11("cswmsel+=cswmpro.offsetleft;");
    writer.csf_11("cswmset+=cswmpro.offsettop;");
    writer.csf_11("cswmprt=cswmpro.tagname;");
    writer.csf_11("}");
    writer.csf_11("if(navigator.platform==/"macppc/")");
    writer.csf_11("{");
    writer.csf_11("cswmsel+=number(document.body.leftmargin);");
    writer.csf_11("cswmset+=number(document.body.topmargin);");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.display=/"block/";");
    writer.csf_11("cswmpw=document.all[/"cswmpopup/"+id].clientwidth;");
    writer.csf_11("cswmph=document.all[/"cswmpopup/"+id].clientheight;");
    writer.csf_11("cswmbw=document.body.clientwidth;");
    writer.csf_11("cswmbh=document.body.clientheight;");
    if (!(local8))
        writer.csf_11("cswmsla=document.body.scrollleft;");
    if (!(local9))
        writer.csf_11("cswmsta=document.body.scrolltop;");
    writer.csf_11("switch(cswmspnt)");
    writer.csf_11("{");
    writer.csf_11("case /"above/":");
    writer.csf_11("cswmpx[cswmpx.length]=cswmsel;");
    writer.csf_11("cswmpy[cswmpy.length]=cswmset-cswmph;");
    writer.csf_11("cswmca();");
    writer.csf_11("cswmcr();");
    writer.csf_11("break;");
    writer.csf_11("case /"below/":");
    writer.csf_11("cswmpx[cswmpx.length]=cswmsel;");
    writer.csf_11("cswmpy[cswmpy.length]=cswmset+cswmseh;");
    writer.csf_11("cswmcb();");
    writer.csf_11("cswmcr();");
    writer.csf_11("break;");
    writer.csf_11("case /"right/":");
    writer.csf_11("cswmpx[cswmpx.length]=cswmsel+cswmsew;");
    writer.csf_11("cswmpy[cswmpy.length]=cswmset;");
    writer.csf_11("cswmcr();");
    writer.csf_11("cswmcb();");
    writer.csf_11("break;");
    writer.csf_11("case /"left/":");
    writer.csf_11("cswmpx[cswmpx.length]=cswmsel-cswmpw;");
    writer.csf_11("cswmpy[cswmpy.length]=cswmset;");
    writer.csf_11("cswmcl();");
    writer.csf_11("cswmcb();");
    writer.csf_11("cswmdir=/"left/";");
    writer.csf_11("break;");
    writer.csf_11("}");
    writer.csf_11("cswmxoff=0;");
    writer.csf_11("cswmyoff=0;");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.left=cswmpx[cswmpx.length-1];");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.top=cswmpy[cswmpy.length-1];;");
    writer.csf_11("cswmpi[cswmpi.length]=id;");
    local60 = local1;
    switch (local60 - 1) {
        case 0:
            writer.csf_11("if(cswmts==0)");
            writer.csf_11("{");
            writer.csf_11("cswmpr=new object(eval(cswmom+/"cswmpopup/"+id));");
            writer.csf_11("cswmfi(20);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("}");
            writer.csf_11("else");
            writer.csf_11("{");
            writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.filter=///"alpha(opacity=100///"/");");
            writer.csf_11("}");
            break;
        break;
        case 1:
            writer.csf_11("if(cswmts==0)");
            writer.csf_11("{");
            writer.csf_11("cswmpr=new object(eval(cswmom+/"cswmpopup/"+id));");
            writer.csf_11("cswmpixi(30);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("}");
            writer.csf_11("else");
            writer.csf_11("{");
            writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.filter=///"///"/");");
            writer.csf_11("}");
            break;
        break;
        case 2:
            goto case 3;
        case 3:
            writer.csf_11("document.all[/"cswmpopup/"+id].style.clip=/"rect(auto)/";");
            writer.csf_11("if(cswmts==0)");
            writer.csf_11("{");
            writer.csf_11("cswmpr=new object(document.all[/"cswmpopup/"+id]);");
            writer.csf_11("cswmsa=true;");
            writer.csf_11("switch(cswmspnt)");
            writer.csf_11("{");
            writer.csf_11("case /"below/":");
            writer.csf_11("cswmsip=cswmpy[cswmpy.length-1];");
            writer.csf_11("cswmss=cswmph/4;");
            writer.csf_11("cswmsci(cswmph);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("break;");
            writer.csf_11("case /"right/":");
            writer.csf_11("cswmsip=cswmpx[cswmpy.length-1];");
            writer.csf_11("cswmss=cswmpw/4;");
            writer.csf_11("cswmsci(cswmpw);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("break;");
            writer.csf_11("case /"above/":");
            writer.csf_11("cswmsip=cswmpy[cswmpy.length-1];");
            writer.csf_11("cswmss=cswmph/4;");
            writer.csf_11("cswmsci(cswmph);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("break;");
            writer.csf_11("case /"left/":");
            writer.csf_11("cswmsip=cswmpx[cswmpy.length-1];");
            writer.csf_11("cswmss=cswmpw/4;");
            writer.csf_11("cswmsci(cswmpw);");
            writer.csf_11("cswmts=1;");
            writer.csf_11("break;");
            writer.csf_11("}");
            writer.csf_11("}");
        break;
    }
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
    local60 = local1;
    switch (local60 - 1) {
        case 0:
            writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.filter=///"alpha(opacity=100///"/");");
            break;
        break;
        case 1:
            writer.csf_11("eval(cswmom+/"cswmpopup/"+id+/".style.filter=///"///"/");");
            break;
        break;
        case 2:
            goto case 3;
        case 3:
            writer.csf_11("if(cswmsa==true)");
            writer.csf_11("{");
            writer.csf_11("return;");
            writer.csf_11("}");
        break;
    }
    writer.csf_11("cswmpx[cswmpx.length]=document.all[/"cswmpopup/"+cswmpi][cswmpi.length-1]].clientwidth+cswmpx[cswmpx.length-1]-4;");
    writer.csf_11("var szpre=/"/";");
    writer.csf_11("if(document.all[/"cswmitem/"+itemid].parentelement.offsettop==0)");
    writer.csf_11("{");
    writer.csf_11("if(navigator.platform==/"macppc/")");
    writer.csf_11("{");
    writer.csf_11("var szpre=/"parentelement.parentelement./";");
    writer.csf_11("}");
    writer.csf_11("else if(document.all[/"cswmitem/"+itemid].parentelement.parentelement.parentelement.parentelement.classname!=/"cswmpopupbox/")");
    writer.csf_11("{");
    writer.csf_11("var szpre=/"parentelement.parentelement.parentelement./";");
    writer.csf_11("}");
    writer.csf_11("}");
    writer.csf_11("cswmpy[cswmpy.length]=eval(cswmom+/"cswmitem/"+itemid+/".parentelement./"+szpre+/"offsettop/")+cswmpy[cswmpy.length-1];");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.display=/"block/";");
    writer.csf_11("cswmpw=document.all[/"cswmpopup/"+id].clientwidth;");
    writer.csf_11("cswmph=document.all[/"cswmpopup/"+id].clientheight;");
    writer.csf_11("var cswmprw=document.all[/"cswmpopup/"+cswmpi][cswmpi.length-1]].clientwidth;");
    writer.csf_11("cswmar=cswmbw-cswmpx[cswmpx.length-1]+cswmsla;");
    writer.csf_11("cswmab=cswmbh-cswmpy[cswmpy.length-1]+cswmsta;");
    writer.csf_11("if(cswmpx[cswmpx.length-2]==cswmsla){cswmdir=/"right/";}");
    writer.csf_11("if((cswmar<cswmpw)||(cswmdir==/"left/"))");
    writer.csf_11("{");
    writer.csf_11("cswmmb=(cswmpx[cswmpx.length-1]-cswmpw-cswmprw)+8;");
    writer.csf_11("if((cswmmb>=0)&&(cswmmb>cswmsla))");
    writer.csf_11("{");
    writer.csf_11("cswmdir=/"left/";");
    writer.csf_11("}");
    writer.csf_11("else");
    writer.csf_11("{");
    writer.csf_11("cswmmb=cswmsla;");
    writer.csf_11("}");
    writer.csf_11("cswmpx[cswmpx.length-1]=cswmmb;");
    writer.csf_11("}");
    writer.csf_11("if(cswmab<cswmph)");
    writer.csf_11("{");
    writer.csf_11("cswmmb=cswmpy[cswmpy.length-1]-(cswmph-cswmab);");
    writer.csf_11("if(cswmmb<0)");
    writer.csf_11("{");
    writer.csf_11("cswmmb=cswmsta;");
    writer.csf_11("}");
    writer.csf_11("cswmpy[cswmpy.length-1]=cswmmb;");
    writer.csf_11("}");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.left=cswmpx[cswmpx.length-1];");
    writer.csf_11("document.all[/"cswmpopup/"+id].style.top=cswmpy[cswmpy.length-1];");
    writer.csf_11("cswmpi[cswmpi.length]=id;");
    writer.csf_11("}");
    if (!(local10))
        goto i1;
    local60 = local1;
    switch (local60 - 1) {
        case 1:
            writer.csf_11("if(navigator.platform!=/"macppc/")");
            writer.csf_11("{");
            writer.csf_11("cswmms(id);");
            writer.csf_11("}");
        break;
        case 0:
            goto case 3;
        case 2:
            goto case 3;
        case 3:
            i1: writer.csf_11("}");
            writer.csf_11("function cswmhp(level)");
            writer.csf_11("{");
            writer.csf_11("if(level==0)");
            writer.csf_11("{");
            if (local6)
                writer.csf_11("cswmhideselectbox(false);");
            writer.csf_11("}");
            writer.csf_11("var count=level;");
            writer.csf_11("for(count=level;count<cswmpi.length;count++)");
            writer.csf_11("{");
            writer.csf_11("document.all[/"cswmpopup/"+cswmpi][count]].style.display=/"none/";");
            writer.csf_11("}");
            writer.csf_11("if(level==0&&cswmpi.length>0)");
            writer.csf_11("{");
            if (!(common.csf_0(local19))) {
                writer.csf_11("var id = cswmpi[0];");
                writer.csf_11(local19);
                writer.csf_11(";");
            }
            writer.csf_11("}");
            writer.csf_11("cswmpi.length=level;");
            writer.csf_11("cswmpx.length=level;");
            writer.csf_11("cswmpy.length=level;");
            if (!(local10))
                goto i2;
            local60 = local1;
            switch (local60 - 1) {
                case 1:
                    writer.csf_11("if(navigator.platform!=/"macppc/")");
                    writer.csf_11("{");
                    writer.csf_11("cswmds(level);");
                    writer.csf_11("}");
                
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表