首页 > 开发 > 综合 > 正文

Coalesys.WebMenu source code(partial)(7)

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

writer.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("}");
                        
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表