Coalesys.WebMenu source code(partial)(5)

80酷酷网    80kuku.com

  webwriter.CSF_11("{");
                        writer.CSF_11("if(ms!=\"off\")");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmCTH==0)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmTI=setTimeout(\"cswmHP(0);cswmClkd=-1\",ms);");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("clearTimeout(cswmTI);");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmShow(id,srcid,relpos,offsetX,offsetY,fixedpos)");
                        writer.CSF_11("{");
                        writer.CSF_11("clearTimeout(cswmTI);");
                        writer.CSF_11("if(cswmClkd!=id)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmHP(0);");
                        writer.CSF_11("cswmSI=srcid;");
                        writer.CSF_11("cswmSPnt=relpos;");
                        writer.CSF_11("cswmClkd=id;");
                        writer.CSF_11("cswmDir=\"right\";");
                        writer.CSF_11("if(eval(cswmOM+\"cswmPopup\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("if(offsetX)cswmXOff=offsetX;");
                        writer.CSF_11("if(offsetY)cswmYOff=offsetY;");
                        writer.CSF_11("if(fixedpos)cswmFP=fixedpos;");
                        writer.CSF_11("cswmSP(id);");
                        if (!(Common.CSF_0(local31))) {
                            writer.CSF_11(local31);
                            writer.CSF_11(";");
                        }
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHide()");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmTI=setTimeout(\"cswmHP(0);cswmClkd=-1\",");
                        writer.CSF_11(local21);
                        writer.CSF_11(");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHiI(id,bgco)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmCo+\"=\\\"");
                        writer.CSF_11(local27);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmCo+\"=\\\"");
                        writer.CSF_11(local27);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("if(bgco!=null)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmBgCo+\"=\\\"\"+bgco+\"\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmBgCo+\"=\\\"\"+bgco+\"\\\"\");");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmBgCo+\"=\\\"");
                        writer.CSF_11(local26);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmBgCo+\"=\\\"");
                        writer.CSF_11(local26);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("}");
                        writer.CSF_11("if(eval(cswmOM+\"cswmExpandIc\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmExpandIc\"+id+\".src=cswmExdIS\");");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmDiI(id, bgco)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmCo+\"=\\\"");
                        writer.CSF_11(local30);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmCo+\"=\\\"");
                        writer.CSF_11(local30);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("if(bgco!=null)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmBgCo+\"=\\\"\"+bgco+\"\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmBgCo+\"=\\\"\"+bgco+\"\\\"\");");
                        writer.CSF_11("}");
                        writer.CSF_11("else");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmItem\"+id+cswmBgCo+\"=\\\"");
                        writer.CSF_11(local25);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("eval(cswmOM+\"cswmExpand\"+id+cswmBgCo+\"=\\\"");
                        writer.CSF_11(local25);
                        writer.CSF_11("\\\"\");");
                        writer.CSF_11("}");
                        writer.CSF_11("if(eval(cswmOM+\"cswmExpandIc\"+id))");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(cswmOM+\"cswmExpandIc\"+id+\".src=cswmExIS\");");
                        writer.CSF_11("}");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmSP(id,itemid)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(!itemid)");
                        writer.CSF_11("{");
                        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(eval(cswmOM+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("}");
                        writer.CSF_11("eval(cswmOM+\"cswmPopup\"+id+\".style.width=1\");");
                        writer.CSF_11("eval(cswmOM+\"cswmPopup\"+id+\".style.height=1\");");
                        writer.CSF_11("eval(cswmOM+\"cswmPopup\"+id+cswmDi+\"=\\\"block\\\"\");");
                        writer.CSF_11("cswmPW=eval(cswmOM+\"cswmPopup\"+id+\".clientWidth\");");
                        writer.CSF_11("cswmPH=eval(cswmOM+\"cswmPopup\"+id+\".clientHeight\");");
                        writer.CSF_11("cswmBW=document.body.clientWidth;");
                        writer.CSF_11("cswmBH=document.body.clientHeight;");
                        if (!(local23))
                            writer.CSF_11("cswmSLA=document.body.scrollLeft;");
                        if (!(local24))
                            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("eval(cswmOM+\"cswmPopup\"+id+\".style.left=cswmPx[cswmPx.length-1]\");");
                        writer.CSF_11("eval(cswmOM+\"cswmPopup\"+id+\".style.top=cswmPy[cswmPy.length-1]\");");
                        

分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: