首页 > 开发 > 综合 > 正文

Coalesys.WebMenu source code(partial)(9)

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


writer.csf_11("while(cswmcio)");
                        writer.csf_11("{");
                        writer.csf_11("var cswmli=cswmcio.id;");
                        writer.csf_11("if(cswmli.indexof(/"item/")>-1)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmcio.document.layers.length)");
                        writer.csf_11("{");
                        writer.csf_11("cswmc=1;");
                        writer.csf_11("}");
                        writer.csf_11("if(cswmhs==0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio.clip.height=cswmcio.clip.height+cswmbp;");
                        writer.csf_11("}");
                        writer.csf_11("if(cswmcio.clip.width>(cswmiw-cswmrp))");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmhs==0)");
                        writer.csf_11("{");
                        writer.csf_11("cswmiw=cswmcio.clip.width+cswmrp;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("cswmiw=cswmcio.clip.width;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("cswmcio.top=cswmtp;");
                        writer.csf_11("cswmtp+=cswmcio.clip.height;");
                        writer.csf_11("cswmcio.left=cswmbs;");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("var cswmcount=0;");
                        writer.csf_11("for(cswmcount=0;cswmcount<2;cswmcount++)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio.top=cswmcio.siblingbelow.top;");
                        writer.csf_11("cswmcio.left=cswmbs;");
                        writer.csf_11("cswmcio.clip.height=cswmcio.siblingbelow.clip.height;");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("else if(cswmli.indexof(/"divider/")>-1)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio.top=cswmtp;");
                        writer.csf_11("cswmcio.left=cswmbs;");
                        writer.csf_11("cswmtp+=cswmcio.clip.height;");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("break;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("cswmcio=cswmp.above;");
                        writer.csf_11("while(cswmcio)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmli.indexof(/"divider/")>-1)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmcio.clip.width>cswmiw)");
                        writer.csf_11("{");
                        writer.csf_11("cswmiw=cswmcio.clip.width;");
                        writer.csf_11("if(cswmc && !cswmhs)");
                        writer.csf_11("{");
                        writer.csf_11("cswmiw-=15;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("else if(cswmli.indexof(/"item/")>-1)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("break;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("if(cswmc && !cswmhs)");
                        writer.csf_11("{");
                        writer.csf_11("cswmiw+=15;");
                        writer.csf_11("cswmcio=cswmp.above;");
                        writer.csf_11("while(cswmcio)");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmcio.document.layers.length)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio.above.left=cswmiw-15;");
                        writer.csf_11("cswmcio.above.top=(cswmcio.clip.height/2)-5;");
                        writer.csf_11("}");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("cswmph=cswmtp+cswmbs;");
                        writer.csf_11("cswmpw=cswmiw+(cswmbs*2);");
                        writer.csf_11("cswmp.clip.height=cswmph;");
                        writer.csf_11("cswmp.clip.width=cswmpw;");
                        writer.csf_11("cswmcio=cswmp.above;");
                        writer.csf_11("while(cswmcio)");
                        writer.csf_11("{");
                        writer.csf_11("var cswmli=cswmcio.id;");
                        writer.csf_11("if(cswmli.indexof(/"cswm/")>-1)");
                        writer.csf_11("{");
                        writer.csf_11("cswmcio.clip.width=cswmiw;");
                        writer.csf_11("cswmcio=cswmcio.siblingabove;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("break;");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("}");
                        writer.csf_11("function cswmshowinframe(menuid,x,y)");
                        writer.csf_11("{");
                        writer.csf_11("x+=window.pagexoffset;");
                        writer.csf_11("y+=window.pageyoffset;");
                        writer.csf_11("cswmshow(menuid,'','below',x,y,1);");
                        writer.csf_11("}");
                        writer.csf_11("function cswmhideselectbox()");
                        writer.csf_11("{");
                        writer.csf_11("}");
                        writer.csf_11("function cswmrefresh()");
                        writer.csf_11("{");
                        writer.csf_11("if(cswmwinx!=window.outerwidth||cswmwiny!=window.outerheight)");
                        writer.csf_11("{");
                        writer.csf_11("location.reload()");
                        writer.csf_11("}");
                        writer.csf_11("}/r/n");
                        writer.csf_11("//-->/r/n");
                        return;
                    }
                    if (type == 4) {
                        local52 = webmenu.backgroundcolor;
                        local53 = webmenu.selectedcolor;
                        local54 = webmenu.selectedtextcolor;
                        local55 = webmenu.popupicon;
                        local56 = webmenu.selectedpopupicon;
                        local48 = webmenu.hidetimer;
                        local49 = webmenu.hideonclick;
                        local50 = webmenu.ignorehorzscroll;
                        local51 = webmenu.ignorevertscroll;
                        local58 = webmenu.onshow;
                        local59 = webmenu.onhide;
                        local47 = webmenu.itemfont;
                        local57 = local47.color;
                        writer.csf_11("/r/n<!--/r/n");
                        if (!(webmenu.csf_8())) {
                            writer.csf_11("//////////////////////////////////////////////////r/n");
                            writer.csf_11("// coalesys webmenu for asp.net nn6 dhtml script/r/n");
                            writer.csf_11("// copyright 2001 coalesys, inc./r/n");
                            writer.csf_11("//////////////////////////////////////////////////r/n");
                        }
                        writer.csf_11("var cswmti=/"/";");
                        writer.csf_11("var cswmclkd=-1;");
                        writer.csf_11("var cswmpi=new array();");
                        writer.csf_11("var cswmpl=new array();");
                        writer.csf_11("var cswmpt=new array();");
                        writer.csf_11("var cswmpw=0;");
                        writer.csf_11("var cswmph=0;");
                        writer.csf_11("var cswmspnt=/"/";");
                        writer.csf_11("var cswmdir=/"/";");
                        writer.csf_11("var cswmmb=0;");
                        writer.csf_11("var cswmsi=/"/";");
                        writer.csf_11("var cswmse=new object();");
                        writer.csf_11("var cswmsel=0;");
                        writer.csf_11("var cswmset=0;");
                        writer.csf_11("var cswmseh=0;");
                        writer.csf_11("var cswmsew=0;");
                        writer.csf_11("var cswmbw=0;");
                        writer.csf_11("var cswmbh=0;");
                        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 cswmexis=/"");
                        writer.csf_11(local55);
                        writer.csf_11("/";");
                        writer.csf_11("var cswmexdis=/"");
                        writer.csf_11(local56);
                        writer.csf_11("/";");
                        writer.csf_11("var cswmcth=");
                        if (local49)
                            writer.csf_11(-1);
                        else
                            writer.csf_11(0);
                        writer.csf_11(";");
                        writer.csf_11("var cswmxoff=0;");
                        writer.csf_11("var cswmyoff=0;");
                        writer.csf_11("var cswmfp=0;");
                        if (local49) {
                            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)");
                        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(document.getelementbyid(/"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(local58))) {
                            writer.csf_11(local58);
                            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(local48);
                        writer.csf_11(");");
                        writer.csf_11("}");
                        writer.csf_11("function cswmhii(id,bgco)");
                        writer.csf_11("{");
                        writer.csf_11("if(document.getelementbyid(/"cswmicoon/"+id))");
                        writer.csf_11("{");
                        writer.csf_11("document.getelementbyid(/"cswmicoon/"+id).style.display=/"inline/";");
                        writer.csf_11("document.getelementbyid(/"cswmico/"+id).style.display=/"none/";");
                        writer.csf_11("}");
                        writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.color=/"");
                        writer.csf_11(local54);
                        writer.csf_11("/";");
                        writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.color=/"");
                        writer.csf_11(local54);
                        writer.csf_11("/";");
                        writer.csf_11("if(bgco!=null)");
                        writer.csf_11("{");
                        writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.backgroundcolor=bgco;");
                        writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.backgroundcolor=bgco;");
                        writer.csf_11("}");
                        writer.csf_11("else");
                        writer.csf_11("{");
                        writer.csf_11("document.getelementbyid(/"cswmitem/"+id).style.backgroundcolor=/"");
                        writer.csf_11(local53);
                        writer.csf_11("/";");
                        writer.csf_11("document.getelementbyid(/"cswmexpand/"+id).style.backgroundcolor=/"");
                        writer.csf_11(local53);
                        writer.csf_11("/";");
                        writer.csf_11("}");
                        writer.csf_11("if(document.getelementbyid(/"cswmexpandic/"+id))");
                        writer.csf_11("{");
                        writer.csf_11("document.getelementbyid(/"cswmexpandic/"+id).src=cswmexdis;");
                        
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表