Coalesys.WebMenu source code(partial)(6)
2024-07-21 02:16:58
供稿:网友
writer.csf_11("cswmpi[cswmpi.length]=id;");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmpx[cswmpx.length]=eval(cswmom+/"cswmpopup/"+cswmpi[cswmpi.length-1]+/".clientwidth/")+cswmpx[cswmpx.length-1]-4;");
writer.csf_11("var szpre=/"/";");
writer.csf_11("if(document.all[/"cswmitem/"+itemid].offsetparent.offsettop==0)");
writer.csf_11("{");
writer.csf_11("if(document.all[/"cswmitem/"+itemid].offsetparent.offsetparent.offsetparent.offsetparent.classname!=/"cswmpopupbox/")");
writer.csf_11("{");
writer.csf_11("var szpre=/"offsetparent.offsetparent.offsetparent./";");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("cswmpy[cswmpy.length]=eval(cswmom+/"cswmitem/"+itemid+/".offsetparent./"+szpre+/"offsettop/")+cswmpy[cswmpy.length-1];");
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("var cswmprw=eval(cswmom+/"cswmpopup/"+cswmpi[cswmpi.length-1]+/".clientwidth/");");
writer.csf_11("cswmar=cswmbw-cswmpx[cswmpx.length-1]+cswmsla;");
writer.csf_11("cswmab=cswmbh-cswmpy[cswmpy.length-1]+cswmsta;");
writer.csf_11("if(cswmpx[cswmpx.length-2]==cswmsla){cswmdir=/"right/";}");
writer.csf_11("if((cswmar<cswmpw)||(cswmdir==/"left/"))");
writer.csf_11("{");
writer.csf_11("cswmmb=(cswmpx[cswmpx.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("cswmpx[cswmpx.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("if(cswmab<cswmph)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpy[cswmpy.length-1]-(cswmph-cswmab);");
writer.csf_11("if(cswmmb<0)");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmsta;");
writer.csf_11("}");
writer.csf_11("cswmpy[cswmpy.length-1]=cswmmb;");
writer.csf_11("}");
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]/");");
writer.csf_11("cswmpi[cswmpi.length]=id;");
writer.csf_11("}");
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(cswmom+/"cswmpopup/"+cswmpi[count]+cswmdi+/"=///"none///"/");");
writer.csf_11("}");
writer.csf_11("if(level==0&&cswmpi.length>0)");
writer.csf_11("{");
if (!(common.csf_0(local32))) {
writer.csf_11("var id = cswmpi[0];");
writer.csf_11(local32);
writer.csf_11(";");
}
writer.csf_11("}");
writer.csf_11("cswmpi.length=level;");
writer.csf_11("cswmpx.length=level;");
writer.csf_11("cswmpy.length=level;");
writer.csf_11("}");
writer.csf_11("function cswmcr()");
writer.csf_11("{");
writer.csf_11("cswmar=(cswmbw+cswmsla)-cswmpx[cswmpx.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=cswmpx[cswmpx.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("cswmpx[cswmpx.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("cswmpx[cswmpx.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(cswmpx[cswmpx.length-1]<(cswmsla))");
writer.csf_11("{");
writer.csf_11("cswmpx[cswmpx.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)-cswmpy[cswmpy.length-1];");
writer.csf_11("if(cswmab<cswmph)");
writer.csf_11("{");
writer.csf_11("if(cswmspnt==/"below/")");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpy[cswmpy.length-1]-cswmph-cswmseh;");
writer.csf_11("if(cswmmb>=0)");
writer.csf_11("{");
writer.csf_11("cswmpy[cswmpy.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("else");
writer.csf_11("{");
writer.csf_11("cswmmb=cswmpy[cswmpy.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("cswmpy[cswmpy.length-1]=cswmmb;");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmca()");
writer.csf_11("{");
writer.csf_11("if(cswmpy[cswmpy.length-1]<(cswmsta))");
writer.csf_11("{");
writer.csf_11("cswmpy[cswmpy.length-1]=cswmset+cswmseh;");
writer.csf_11("cswmcb();");
writer.csf_11("}");
writer.csf_11("}");
writer.csf_11("function cswmhideselectbox()");
writer.csf_11("{");
writer.csf_11("}");
writer.csf_11("function cswmshowinframe(menuid,x,y)");
writer.csf_11("{");
writer.csf_11("x+=document.body.scrollleft;");
writer.csf_11("y+=document.body.scrolltop;");
writer.csf_11("cswmshow(menuid,'','below',x,y,1);");
writer.csf_11("}");
writer.csf_11("function cswmrefresh()");
writer.csf_11("{");
writer.csf_11("}");
writer.csf_11("/r/n//-->/r/n");
return;
}
if (type == 3) {
local41 = webmenu.outershadowcolor;
local42 = webmenu.outerhighlightcolor;
local43 = webmenu.innershadowcolor;
local44 = webmenu.innerhighlightcolor;
local34 = webmenu.bordersize;
local35 = webmenu.hidetimer;
local38 = webmenu.hideonclick;
local39 = webmenu.ignorehorzscroll;
local40 = webmenu.ignorevertscroll;
local45 = webmenu.onshow;
local46 = webmenu.onhide;
local33 = webmenu.itemfont;
local36 = local33.paddingbottom;
local37 = local33.paddingright;
if (local34 == 1) {
local43 = local41;
local44 = local42;
}
writer.csf_11("/r/n<!--/r/n");
if (!(webmenu.csf_8())) {
writer.csf_11("//////////////////////////////////////////////////r/n");
writer.csf_11("// coalesys webmenu for asp.net nn4 dhtml script/r/n");
writer.csf_11("// copyright 2001 coalesys, inc./r/n");
writer.csf_11("//////////////////////////////////////////////////r/n");
}
writer.csf_11("var cswmp=new object();");
writer.csf_11("var cswmbp=");
writer.csf_11(local36);
writer.csf_11(";");
writer.csf_11("var cswmrp=");
writer.csf_11(local37);
writer.csf_11(";");
writer.csf_11("var cswmbs=");
writer.csf_11(local34);
writer.csf_11(";");
writer.csf_11("var cswmti=/"/";");
writer.csf_11("var cswmclkd=new string();");
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 cswmps=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=self.innerwidth-16;");
本文来源于网页设计爱好者web开发社区http://www.html.org.cn收集整理,欢迎访问。