Coalesys.WebMenu source code(partial)(7)

80酷酷网    80kuku.com

  webwriter.CSF_11("var cswmBH=self.innerHeight-16;");
                        writer.CSF_11("var cswmAR=0;");
                        writer.CSF_11("var cswmAB=0;");
                        writer.CSF_11("var cswmSLA=0;");
                        writer.CSF_11("var cswmSTA=0;");
                        writer.CSF_11("var cswmIW=0;");
                        writer.CSF_11("var cswmC=0;");
                        writer.CSF_11("var cswmHS=0;");
                        writer.CSF_11("var cswmL=0;");
                        writer.CSF_11("var cswmCTH=");
                        if (local38)
                            writer.CSF_11(-1);
                        else
                            writer.CSF_11(0);
                        writer.CSF_11(";");
                        writer.CSF_11("var cswmPrL=new String();");
                        writer.CSF_11("cswmWinY=window.outerHeight;");
                        writer.CSF_11("cswmWinX=window.outerWidth;");
                        writer.CSF_11("var cswmXOff=0;");
                        writer.CSF_11("var cswmYOff=0;");
                        writer.CSF_11("var cswmFP=0;");
                        if (local38) {
                            writer.CSF_11("document.captureEvents(Event.CLICK);");
                            writer.CSF_11("document.onclick=cswmEV;");
                            writer.CSF_11("function cswmEV()");
                            writer.CSF_11("{");
                            writer.CSF_11("if(cswmClkd!=-1)");
                            writer.CSF_11("{");
                            writer.CSF_11("cswmHP(0);");
                            writer.CSF_11("cswmDir=\"right\";");
                            writer.CSF_11("cswmClkd=-1;");
                            writer.CSF_11("}");
                            writer.CSF_11("}");
                        }
                        writer.CSF_11("function cswmT(ms)");
                        writer.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,temp)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(!temp)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(!offsetX)offsetX=0;");
                        writer.CSF_11("if(!offsetY)offsetY=0;");
                        writer.CSF_11("if(!fixedpos)fixedpos=0;");
                        writer.CSF_11("setTimeout(\"cswmShow('\"+id+\"','\"+srcid+\"','\"+relpos+\"',\"+offsetX+\",\"+offsetY+\",\"+fixedpos+\",1);\",10);");
                        writer.CSF_11("return;");
                        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(\"document.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(local45))) {
                            writer.CSF_11(local45);
                            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(local35);
                        writer.CSF_11(");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHiI(id, PrntLayer)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmL=id;");
                        writer.CSF_11("cswmPrL=PrntLayer;");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemHover\"+id+\".visibility=\\\"show\\\"\");");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemMask\"+id+\".captureEvents(Event.CLICK)\");");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemMask\"+id+\".onclick=cswmHC\");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmDiI(id)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemHover\"+id+\".visibility=\\\"hide\\\"\");");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemMask\"+id+\".document.releaseEvents(Event.CLICK)\");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmHC(evt)");
                        writer.CSF_11("{");
                        writer.CSF_11("eval(\"document.cswmPopup\"+cswmPrL+\".document.cswmItemMask\"+cswmL+\".document.links[0].handleEvent(evt)\");");
                        writer.CSF_11("}");
                        writer.CSF_11("function cswmSP(id, itemid)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmP=eval(\"document.cswmPopup\"+id);");
                        writer.CSF_11("cswmC=0;");
                        writer.CSF_11("cswmHS=0;");
                        writer.CSF_11("var cswmCount=0;");
                        writer.CSF_11("for(cswmCount=0;cswmCount<cswmPS.length;cswmCount++)");
                        writer.CSF_11("{");
                        writer.CSF_11("if(cswmPS[cswmCount]==id)");
                        writer.CSF_11("{");
                        writer.CSF_11("cswmHS=1;");
                        writer.CSF_11("break;");
                        writer.CSF_11("}");
                        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(\"document.\"+cswmSI));");
                        writer.CSF_11("cswmSEL=cswmSE.x+cswmXOff;");
                        writer.CSF_11("cswmSET=cswmSE.y+cswmYOff;");
                        writer.CSF_11("cswmSEH=cswmSE.height;");
                        writer.CSF_11("cswmSEW=cswmSE.width;");
                        writer.CSF_11("}");
                        writer.CSF_11("cswmRenP();");
                        if (!(local39))
                            writer.CSF_11("cswmSLA=self.pageXOffset;");
                        if (!(local40))
                            writer.CSF_11("cswmSTA=self.pageYOffset;");
                        writer.CSF_11("switch(cswmSPnt)");
                        writer.CSF_11("{");
                        writer.CSF_11("case \"above\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET-cswmPH;");
                        writer.CSF_11("cswmCA();");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"below\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET+cswmSEH;");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"right\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL+cswmSEW;");
                        writer.CSF_11("cswmPT[cswmPT.length]=cswmSET;");
                        writer.CSF_11("cswmCR();");
                        writer.CSF_11("cswmCB();");
                        writer.CSF_11("break;");
                        writer.CSF_11("case \"left\":");
                        writer.CSF_11("cswmPL[cswmPL.length]=cswmSEL-cswmPW;");
                        writer.CSF_11("cswmPT[cswmPT.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("}");
                        

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