var mmenus = new Array(); var misShow = new Boolean(); misShow=false; var misdown = new Boolean(); misdown=false; var musestatus=false; var mpopTimer = 0; mmenucolor='#EEEEEE';mfontcolor='#000000';mmenuoutcolor='#EEEEEE';mmenuincolor='#EEEEEE';mmenuoutbordercolor='#EEEEEE';mmenuinbordercolor='#EEEEEE';mmidoutcolor='#EDEDED';mmidincolor='#EDEDED';mmenuovercolor='#FF0000';mitemedge='0';msubedge='0';mmenuunitwidth=60;mmenuitemwidth=190;mmenuheight=22;mmenuwidth='600';mmenuadjust=0;mmenuadjustV=0;mfonts='font-family: 宋体; font-size: 9pt; color: #000000; ';mcursor='hand'; function stoperror(){ return true; } window.onerror=stoperror; function mpopOut() { mpopTimer = setTimeout('mallhide()', 500); } 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; menuid.style.visibility='visible'; 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==6||x==7){ 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=1; 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('首页','/index.php','self','','','',''); mpmenu1.addItem(new mMenuItem('» ENGLISH','/english/','self',false,'','','','','')); mpmenu2=new mMenu('关于福光','/company/','self','','','',''); mpmenu2.addItem(new mMenuItem('» 公司简介','/company/','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('» 主要客户','/company/customer.php','self',false,'','','','','')); mpmenu2.addItem(new mMenuItem('» 企业文化','/company/culture.php','self',false,'','','','','')); mpmenu3=new mMenu('产品信息','/product/','self','','','',''); mpmenu3.addItem(new mMenuItem('» 电源测试维护','/product/more_product.php?c1=1','self',false,'','','','',''));mpmenu3.addItem(new mMenuItem('» 线路传输/光通信','/product/more_product.php?c1=2','self',false,'','','','',''));mpmenu3.addItem(new mMenuItem('» 无线&网优','/product/more_product.php?c1=3','self',false,'','','','',''));mpmenu3.addItem(new mMenuItem('» 网络测试产品','/product/more_product.php?c1=4','self',false,'','','','',''));mpmenu3.addItem(new mMenuItem('» 安捷伦通用基础测量仪表','/product/more_product.php?c1=5','self',false,'','','','',''));mpmenu4=new mMenu('解决方案','/solution/','self','','','',''); mpmenu4.addItem(new mMenuItem('» 电源测试维护解决方案','/solution/','self',false,'','','','',''));mpmenu4.addItem(new mMenuItem('» 线路传输/光通信解决方案','/solution/','self',false,'','','','',''));mpmenu4.addItem(new mMenuItem('» 无线网优解决方案','/solution/','self',false,'','','','',''));mpmenu4.addItem(new mMenuItem('» 局域网测试解决方案','/solution/','self',false,'','','','','')); /* mpmenu4.addItem(new mMenuItem('» 电源测试维护解决方案','/solution/','self',false,'','','','','')); mpmenu4.addItem(new mMenuItem('» 线路传输光通信解决方案','/solution/','self',false,'','','','','')); mpmenu4.addItem(new mMenuItem('» 无线/网优解决方案','/solution/','self',false,'','','','','')); mpmenu4.addItem(new mMenuItem('» 局域网测试解决方案','/solution/','self',false,'','','','','')); */ mpmenu4.addItem(new mMenuItem('» 安捷伦通用基础仪表推荐方案','/product/more_product.php?c1=5','self',false,'','','','','')); mpmenu5=new mMenu('技术支持','/support/','self','','','',''); mpmenu5.addItem(new mMenuItem('» 软件/驱动下载','/support/download.php','self',false,'','','','','')); mpmenu5.addItem(new mMenuItem('» 在线客服','http://www.53kf.com/company.php?arg=fuguang','blank',false,'','','','','')); mpmenu6=new mMenu('分销合作','/distributions/','blank','','','',''); mpmenu6.addItem(new mMenuItem('» 分销政策','/distributions/2.php','blank',false,'','','','','')); mpmenu6.addItem(new mMenuItem('» 福光对合作伙伴的价值','/distributions/3.php','blank',false,'','','','','')); mpmenu6.addItem(new mMenuItem('» 如何成为分销商','/distributions/4.php','blank',false,'','','','','')); mpmenu7=new mMenu('工作机会','/manpower/','self','','','',''); mpmenu8=new mMenu('联系方式','/contact/','self','','','',''); mwritetodocument();