var mmenus = new Array(); var misShow = new Boolean(); misShow=false; var misdown = new Boolean(); misdown=false; var musestatus=false; var mpopTimer = 0; mmenucolor='#EDEEF0';mfontcolor='#FC7D00';mmenuoutcolor='#DADEE1';mmenuincolor='#DADEE1';mmenuoutbordercolor='#6A8AB4';mmenuinbordercolor='#F3F4F6';mmidoutcolor='#89B1E8';mmidincolor='#4A7EC0';mmenuovercolor='#000000';mitemedge='0';msubedge='1';mmenuunitwidth=100;mmenuitemwidth=100;mmenuheight=28;mmenuwidth='100%';mmenuadjust=0;mmenuadjustV=0;mfonts='font-family: Verdana; font-size: 13PX; color: #FC7D00;font-weight:600;';mcursor='default'; var fadeSteps = 5; var fademsec = 20; var fadeArray = new Array(); function fade(el, fadeIn, steps, msec) { if (steps == null) steps = fadeSteps; if (msec == null) msec = fademsec; if (el.fadeIndex == null) el.fadeIndex = fadeArray.length; fadeArray[el.fadeIndex] = el; if (el.fadeStepNumber == null) { if (el.style.visibility == "hidden") el.fadeStepNumber = 0; else el.fadeStepNumber = steps; if (fadeIn) el.style.filter = "Alpha(Opacity=0)"; else el.style.filter = "Alpha(Opacity=100)"; } window.setTimeout("repeatFade(" + fadeIn + "," + el.fadeIndex + "," + steps + "," + msec + ")", msec); } function repeatFade(fadeIn, index, steps, msec) { el = fadeArray[index]; c = el.fadeStepNumber; if (el.fadeTimer != null) window.clearTimeout(el.fadeTimer); if ((c == 0) && (!fadeIn)) { el.style.visibility = "hidden"; return; } else if ((c==steps) && (fadeIn)) { el.style.filter = ""; el.style.visibility = "visible"; return; } else { (fadeIn) ? c++ : c--; el.style.visibility = "visible"; el.style.filter = "Alpha(Opacity=" + 100*c/steps + ")"; el.fadeStepNumber = c; el.fadeTimer = window.setTimeout("repeatFade(" + fadeIn + "," + index + "," + steps + "," + msec + ")", msec); } } function stoperror(){ return true; } window.onerror=stoperror; function mpopOut() { mpopTimer = setTimeout('mallhide()', 100); } function getReal(el, type, value) { temp = el; while ((temp != null) && (temp.tagName != "BODY")) { if (eval("temp." + type) == value) { el = temp; return el; } temp = temp.parentElement; } return el; } function mMenuRegister(menu) { mmenus[mmenus.length] = menu return (mmenus.length - 1) } function mMenuItem(caption,command,target,isline,statustxt,img,sizex,sizey,pos){ this.caption=caption; this.command=command; this.target=target; this.isline=isline; this.statustxt=statustxt; this.img=img; this.sizex=sizex; this.sizey=sizey; this.pos=pos; } function mMenu(caption,command,target,img,sizex,sizey,pos){ this.items = new Array(); this.caption=caption; this.command=command; this.target=target; this.img=img; this.sizex=sizex; this.sizey=sizey; this.pos=pos; this.id=mMenuRegister(this); } function mMenuAddItem(item) { this.items[this.items.length] = item item.parent = this.id; this.children=true; } mMenu.prototype.addItem = mMenuAddItem; function mtoout(src){ src.style.borderLeftColor=mmenuoutbordercolor; src.style.borderRightColor=mmenuinbordercolor; src.style.borderTopColor=mmenuoutbordercolor; src.style.borderBottomColor=mmenuinbordercolor; src.style.backgroundColor=mmenuoutcolor; src.style.color=mmenuovercolor; } function mtoin(src){ src.style.borderLeftColor=mmenuinbordercolor; src.style.borderRightColor=mmenuoutbordercolor; src.style.borderTopColor=mmenuinbordercolor; src.style.borderBottomColor=mmenuoutbordercolor; src.style.backgroundColor=mmenuincolor; src.style.color=mmenuovercolor; } function mnochange(src){ src.style.borderLeftColor=mmenucolor; src.style.borderRightColor=mmenucolor; src.style.borderTopColor=mmenucolor; src.style.borderBottomColor=mmenucolor; src.style.backgroundColor=''; src.style.color=mfontcolor; } function mallhide(){ for(var nummenu=0;nummenudocument.body.clientWidth+document.body.scrollLeft) menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth; fade(menuid,true,5); misShow=true; } function mmenu_over(menuid,x){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; if(x<0){ misShow = false; mallhide(); mtoout(eval("mMenu"+x)); }else{ mallhide(); mtoin(eval("mMenu"+x)); mmenushow(menuid,eval("mMenu"+x)); } clearTimeout(mpopTimer); } function mmenu_out(x){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; if (misShow){ mtoin(eval("mMenu"+x)); }else{ mnochange(eval("mMenu"+x)); } mpopOut() } function mmenu_down(menuid,x){ if(misShow){ mmenuhide(menuid); mtoout(eval("mMenu"+x)); } else{ mtoin(eval("mMenu"+x)); mmenushow(menuid,eval("mMenu"+x)); misdown=true; } } function mmenu_up(){ misdown=false; } function mmenuitem_over(x,i){ srcel = getReal(window.event.srcElement, "className", "coolButton"); if(misdown){ mtoin(srcel); } else{ mtoout(srcel); } mthestatus = mmenus[x].items[i].statustxt; if(mthestatus!=""){ musestatus=true; window.status=mthestatus; } clearTimeout(mpopTimer); } function mmenuitem_out(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mnochange(srcel); if(musestatus)window.status=""; mpopOut() } function mmenuitem_down(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mtoin(srcel) misdown=true; } function mmenuitem_up(){ srcel = getReal(window.event.srcElement, "className", "coolButton"); mtoout(srcel) misdown=false; } function mexec2(x){ var cmd; if(mmenus[x].target=="blank"){ cmd = "window.open('"+mmenus[x].command+"')"; }else{ cmd = mmenus[x].target+".location=\""+mmenus[x].command+"\""; } eval(cmd); } function mexec(x,i){ var cmd; if(mmenus[x].items[i].target=="blank"){ cmd = "window.open('"+mmenus[x].items[i].command+"')"; }else{ cmd = mmenus[x].items[i].target+".location=\""+mmenus[x].items[i].command+"\""; } eval(cmd); } function mbody_click(){ if (misShow){ srcel = getReal(window.event.srcElement, "className", "coolButton"); for(var x=0;x<=mmenus.length;x++){ if(srcel.id=="mMenu"+x) return; } mallhide(); } } document.onclick=mbody_click; function mwritetodocument(){ var mwb=0; var stringx='
' for(var x=0;x"+ifspace+thismenu.caption+""; }else if(thismenu.pos=="1"){ stringx += " align=center>"+thismenu.caption+ifspace+""; }else if(thismenu.pos=="2"){ stringx += " align=center background='"+thismenu.img+"'> "+thismenu.caption+" "; }else{ stringx += " align=center> "+thismenu.caption+" "; } //stringx += ""; } stringx+=""; for(var x=0;x'; }else{ stringx+='' } } document.write("
"+stringx+"
"); } mpmenu1=new mMenu('Jingda','about.asp','self','','','',''); mpmenu1.addItem(new mMenuItem('About Us','about.asp','self',false,'','','','','')); mpmenu1.addItem(new mMenuItem('Speech','speech.asp','self',false,'','','','','')); mpmenu1.addItem(new mMenuItem('Culture','culture.asp','self',false,'','','','','')); mpmenu1.addItem(new mMenuItem('Develop','develop.asp','self',false,'','','','','')); mpmenu1.addItem(new mMenuItem('Organization','organize.asp','self',false,'','','','','')); mpmenu1.addItem(new mMenuItem('Honor','glory.asp','self',false,'','','','','')); mpmenu2=new mMenu('News','news.asp','self','','','',''); mpmenu2.addItem(new mMenuItem('companys news','news.asp?category=%2D%3E187%2D%3E','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('industry news','news.asp?category=%2D%3E188%2D%3E','self',false,'','','','','')); mpmenu3=new mMenu('Certificate','quality.asp','self','','','',''); mpmenu4=new mMenu('Products','products.asp','self','','','',''); mpmenu5=new mMenu('Network','network.asp','self','','','',''); mpmenu6=new mMenu('Servers','service.asp','self','','','',''); mpmenu7=new mMenu('Jobs','jobs.asp','self','','','',''); mpmenu7.addItem(new mMenuItem('Register','getjob.asp','self',false,'','','','','')); mpmenu7.addItem(new mMenuItem('Invite','jobs.asp','self',false,'','','','','')); mpmenu8=new mMenu('Contact','contact.asp','self','','','',''); mwritetodocument();