首页 > 开发 > 综合 > 正文

Coalesys.WebMenu source code(partial)(8)

2024-07-21 02:16:58
字体:
来源:转载
供稿:网友
writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("cswmpl[cswmpl.length]=eval(/"document.cswmpopup/"+cswmpi[cswmpi.length-1]+/".clip.width/")+cswmpl[cswmpl.length-1]-4;");
                        writer.csf_11("cswmpt[cswmpt.length]=eval(/"document.cswmpopup/"+cswmpi[cswmpi.length-1]+/".document.cswmitem/"+itemid+/".top/")+cswmpt[cswmpt.length-1];");
                        writer.csf_11("cswmrenp();");
                        writer.csf_11("var cswmprw = eval(/"document.cswmpopup/"+cswmpi[cswmpi.length-1]+/".clip.width/");");
                        writer.csf_11("cswmar=cswmbw-cswmpl[cswmpl.length-1]+cswmsla;");
                        writer.csf_11("cswmab=cswmbh-cswmpt[cswmpt.length-1]+cswmsta;");
                        writer.csf_11("if(cswmpl[cswmpl.length-2]==cswmsla){cswmdir=/"right/";}");
                        writer.csf_11("if((cswmar<cswmpw)||(cswmdir==/"left/"))");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=(cswmpl[cswmpl.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("cswmpl[cswmpl.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("if(cswmab<cswmph)");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-(cswmph-cswmab);");
                        writer.csf_11("if(cswmmb<0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmsta;");
                        writer.csf_11("}");
                        writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("cswmp.pagex=cswmpl[cswmpl.length-1];");
                        writer.csf_11("cswmp.pagey=cswmpt[cswmpt.length-1];");
                        writer.csf_11("if(cswmhs==0)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmbs!=0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmmbrd(id);");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("if(cswmhs==0);");
                        writer.csf_11("{");
                        writer.csf_11("cswmps.push(id);");
                        writer.csf_11("}");
                        writer.csf_11("cswmpi[cswmpi.length]=id;");
                        writer.csf_11("cswmiw=0;");
                        writer.csf_11("cswmp.visibility=/"show/";");
                        writer.csf_11("}");
                        writer.csf_11("function cswmhp(level)");
                        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("eval(/"document.cswmpopup/"+cswmpi[count]+/".visibility=///"hidden///"/");");
                        writer.csf_11("}");
                        writer.csf_11("if(level==0&&cswmpi.length>0)");
                        writer.csf_11("{");
                        if (!(common.csf_0(local46))) {
                            writer.csf_11("var id = cswmpi[0];");
                            writer.csf_11(local46);
                            writer.csf_11(";");
                        }
                        writer.csf_11("}");
                        writer.csf_11("cswmpi.length=level;");
                        writer.csf_11("cswmpl.length=level;");
                        writer.csf_11("cswmpt.length=level;");
                        writer.csf_11("}");
                        writer.csf_11("function cswmcr()");
                        writer.csf_11("{");
                        writer.csf_11("cswmar=(cswmbw+cswmsla)-cswmpl[cswmpl.length-1];");
                        writer.csf_11("if(cswmar<cswmpw)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmspnt==/"below/"||cswmspnt==/"above/")");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmpl[cswmpl.length-1]-(cswmpw-cswmar);");
                        writer.csf_11("if(cswmmb<0||cswmmb<cswmsla)");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmsla;");
                        writer.csf_11("}");
                        writer.csf_11("cswmpl[cswmpl.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmsel-cswmpw;");
                        writer.csf_11("if(cswmmb>=0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmpl[cswmpl.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmcl()");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmpl[cswmpl.length-1]<(cswmsla))");
                        writer.csf_11("{");
                        writer.csf_11("cswmpl[cswmpl.length-1]=cswmsel+cswmsew;");
                        writer.csf_11("cswmcr();");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmcb()");
                        writer.csf_11("{");
                        writer.csf_11("cswmab=(cswmbh+cswmsta)-cswmpt[cswmpt.length-1];");
                        writer.csf_11("if(cswmab<cswmph)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmspnt==/"below/")");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-cswmph-cswmseh;");
                        writer.csf_11("if(cswmmb>=0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmpt[cswmpt.length-1]-(cswmph-cswmab);");
                        writer.csf_11("if(cswmmb<0||cswmmb<cswmsta)");
                        writer.csf_11("{");
                        writer.csf_11("cswmmb=cswmsta;");
                        writer.csf_11("}");
                        writer.csf_11("cswmpt[cswmpt.length-1]=cswmmb;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmca()");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmpt[cswmpt.length-1]<(cswmsta))");
                        writer.csf_11("{");
                        writer.csf_11("cswmpt[cswmpt.length-1]=cswmset+cswmseh;");
                        writer.csf_11("cswmcb();");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmmbrd(id)");
                        writer.csf_11("{");
                        writer.csf_11("var cswmit=new layer(1,cswmp);");
                        writer.csf_11("var cswmir=new layer(1,cswmp);");
                        writer.csf_11("var cswmil=new layer(1,cswmp);");
                        writer.csf_11("var cswmib=new layer(1,cswmp);");
                        writer.csf_11("cswmit.bgcolor=/"");
                        writer.csf_11(local44);
                        writer.csf_11("/";");
                        writer.csf_11("cswmit.left=cswmbs-1;");
                        writer.csf_11("cswmit.top=cswmbs-1;");
                        writer.csf_11("cswmit.clip.width=cswmiw+1;");
                        writer.csf_11("cswmit.clip.height=1;");
                        writer.csf_11("cswmit.visibility=/"inherit/";");
                        writer.csf_11("cswmir.bgcolor=/"");
                        writer.csf_11(local43);
                        writer.csf_11("/";");
                        writer.csf_11("cswmir.left=cswmiw+cswmbs;");
                        writer.csf_11("cswmir.top=cswmbs-1;");
                        writer.csf_11("cswmir.clip.width=1;");
                        writer.csf_11("cswmir.clip.height=cswmph;");
                        writer.csf_11("cswmir.visibility=/"inherit/";");
                        writer.csf_11("cswmil.bgcolor=/"");
                        writer.csf_11(local44);
                        writer.csf_11("/";");
                        writer.csf_11("cswmil.left=cswmbs-1;");
                        writer.csf_11("cswmil.top=cswmbs;");
                        writer.csf_11("cswmil.clip.width=1;");
                        writer.csf_11("cswmil.clip.height=cswmph-cswmbs;");
                        writer.csf_11("cswmil.visibility=/"inherit/";");
                        writer.csf_11("cswmib.bgcolor=/"");
                        writer.csf_11(local43);
                        writer.csf_11("/";");
                        writer.csf_11("cswmib.left=cswmbs-1;");
                        writer.csf_11("cswmib.top=cswmph-cswmbs;");
                        writer.csf_11("cswmib.clip.width=cswmiw+1;");
                        writer.csf_11("cswmib.clip.height=1;");
                        writer.csf_11("cswmib.visibility=/"inherit/";");
                        writer.csf_11("if(cswmbs==2)");
                        writer.csf_11("{");
                        writer.csf_11("var cswmot=new layer(1,cswmp);");
                        writer.csf_11("var cswmor=new layer(1,cswmp);");
                        writer.csf_11("var cswmob=new layer(1,cswmp);");
                        writer.csf_11("var cswmol=new layer(1,cswmp);");
                        writer.csf_11("cswmot.bgcolor=/"");
                        writer.csf_11(local42);
                        writer.csf_11("/";");
                        writer.csf_11("cswmot.left=0;");
                        writer.csf_11("cswmot.top=0;");
                        writer.csf_11("cswmot.clip.width=cswmiw+3;");
                        writer.csf_11("cswmot.clip.height=1;");
                        writer.csf_11("cswmot.visibility=/"inherit/";");
                        writer.csf_11("cswmor.bgcolor=/"");
                        writer.csf_11(local41);
                        writer.csf_11("/";");
                        writer.csf_11("cswmor.left=cswmiw+3;");
                        writer.csf_11("cswmor.top=0;");
                        writer.csf_11("cswmor.clip.width=1;");
                        writer.csf_11("cswmor.clip.height=cswmph;");
                        writer.csf_11("cswmor.visibility=/"inherit/";");
                        writer.csf_11("cswmob.bgcolor=/"");
                        writer.csf_11(local41);
                        writer.csf_11("/";");
                        writer.csf_11("cswmob.left=0;");
                        writer.csf_11("cswmob.top=cswmph-1;");
                        writer.csf_11("cswmob.clip.width=cswmiw+3;");
                        writer.csf_11("cswmob.clip.height=1;");
                        writer.csf_11("cswmob.visibility=/"inherit/";");
                        writer.csf_11("cswmol.bgcolor=/"");
                        writer.csf_11(local42);
                        writer.csf_11("/";");
                        writer.csf_11("cswmol.left=0;");
                        writer.csf_11("cswmol.top=1;");
                        writer.csf_11("cswmol.clip.width=1;");
                        writer.csf_11("cswmol.clip.height=cswmph-2;");
                        writer.csf_11("cswmol.visibility=/"inherit/";");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmrenp()");
                        writer.csf_11("{");
                        writer.csf_11("var cswmcio=cswmp.above;");
                        writer.csf_11("var cswmtp=new number(cswmbs);");
                        国内最大的酷站演示中心!
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表