var mmenus = new Array(); var misShow = new Boolean(); misShow=false; var misdown = new Boolean(); misdown=false; var mnumberofsub=0; var musestatus=false; var mpopTimer = 0; mmenucolor='#2D7BCA';//菜单背景色 mfontcolor='#ffffff';//默认鼠标移出后字体颜色 mmenuoutcolor='#84B7F4';//二级菜单鼠标移上时的背景色 mmenuincolor='#84B7F4';//一级菜单鼠标移上时的背景色 mmenuoutbordercolor='#B3D6FD';//菜单左上边颜色 mmenuinbordercolor='#193F6A';//菜单右下边颜色 mmidoutcolor='#81B5F4'; mmidincolor='#1A467B'; mmenuovercolor='#ffffff';//默认鼠标移上时字体颜色 mitemedge='0';//菜单边框宽度 msubedge='1';//二级菜单整体边框效果,0为有,1为无 mmenuunitwidth=102;//单个一级菜单宽度,可设为0为自适应 mmenuitemwidth=130;////单个二级菜单宽度(无法自适应) mmenuheight=25;//一级菜单高度 mmenuwidth=780;//菜单整体宽度 mmenuadjust=0;//二级菜单向右偏移 mmenuadjustV=0;//二级菜单向下偏移 mfonts='font-family: 宋体; font-size: 9pt; color: #ffffff; ';mcursor='hand';//默认的字体颜色 var swipeSteps = 4; var swipemsec = 25;//菜单显示速度,值越小越快 var swipeArray = new Array(); function swipe(el, dir, steps, msec) { if (steps == null) steps = swipeSteps; if (msec == null) msec = swipemsec; if (el.swipeIndex == null) el.swipeIndex = swipeArray.length; if (el.swipeTimer != null) window.clearTimeout(el.swipeTimer); swipeArray[el.swipeIndex] = el; el.style.clip = "rect(-99999, 99999, 99999, -99999)"; if ((el.swipeCounter == null || el.swipeCounter == 0) && el.offsetHeight!=1) {// el.offsetHeight!=1无二级菜单时此值为1 el.orgLeft = el.offsetLeft; el.orgTop = el.offsetTop; el.orgWidth = el.offsetWidth; el.orgHeight = el.offsetHeight; } el.swipeCounter = steps; el.style.clip = "rect(0,0,0,0)"; window.setTimeout("repeat(" + dir + "," + el.swipeIndex + "," + steps + "," + msec + ")", msec); } function repeat(dir, index, steps, msec) { el = swipeArray[index]; var left = el.orgLeft; var top = el.orgTop; var width = el.orgWidth; var height = el.orgHeight; if (el.swipeCounter == 0) { el.style.clip = "rect(-99999, 99999, 99999, -99999)"; return; } else { el.swipeCounter--; el.style.visibility = "visible"; switch (dir) { case 2: el.style.clip = "rect(" + height*el.swipeCounter/steps + "," + width + "," + height + "," + 0 + ")"; el.style.top = top - height*el.swipeCounter/steps; break; case 8: el.style.clip = "rect(" + 0 + "," + width + "," + height*(steps-el.swipeCounter)/steps + "," + 0 + ")"; el.style.top = top + height*el.swipeCounter/steps; break; case 6: el.style.clip = "rect(" + 0 + "," + width + "," + height + "," + width*(el.swipeCounter)/steps + ")"; el.style.left = left - width*el.swipeCounter/steps; break; case 4: el.style.clip = "rect(" + 0 + "," + width*(swipeSteps - el.swipeCounter)/steps + "," + height + "," + 0 + ")"; el.style.left = left + width*el.swipeCounter/steps; break; } el.swipeTimer = window.setTimeout("repeat(" + dir + "," + index + "," + steps + "," + msec + ")", msec); } } var mtmpleft=""; var mtmptop=""; function hideSwipe(el) { window.clearTimeout(el.swipeTimer); el.style.visibility = "hidden"; el.style.clip = "rect(-99999, 99999, 99999, -99999)"; el.swipeCounter = 0; if(mtmpleft!="")el.style.left = mtmpleft; if(mtmptop!="")el.style.top = mtmptop; } 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,level,img,sizex,sizey,pos){ this.items = new Array(); this.caption=caption; this.command=command; this.target=target; this.isline=isline; this.statustxt=statustxt; if(level!=null){mnumberofsub++; this.hasc=mnumberofsub;} this.level=level; 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; mMenuItem.prototype.addsubItem = 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; mtmpleft=menuid.style.left;mtmptop=menuid.style.top;swipe(menuid,2,4); misShow=true; } function mshowsubmenu(menuid,pid,rid){ menuid.style.filter='Alpha(Opacity=80)'; menuid.style.left=pid.offsetWidth+rid.offsetLeft; menuid.style.top=pid.offsetTop+rid.offsetTop-3; if(mmenuitemwidth+parseInt(menuid.style.left)>document.body.clientWidth+document.body.scrollLeft) menuid.style.left=document.body.clientWidth+document.body.scrollLeft-mmenuitemwidth; menuid.style.visibility='visible'; } 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(menuid,item,x,j,i){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; srcel = getReal(window.event.srcElement, "className", "coolButton"); for(nummenu=1;nummenu<=mnumberofsub;nummenu++){ var thesub=document.all['msubmenudiv'+nummenu] if(!(menuid==thesub||menuid.style.tag>=thesub.style.tag)){ msubmenuhide(thesub); mnochange(document.all['mp'+nummenu]); document.all["mitem"+nummenu].style.color=mfontcolor; } } if(item)document.all["mitem"+item].style.color=mmenuovercolor; if(misdown||item){ mtoin(srcel); } else{ mtoout(srcel); } if(x==-1)mthestatus=eval("msub"+j).items[i].statustxt; if(j==-1)mthestatus=mmenus[x].items[i].statustxt; if(mthestatus!=""){ musestatus=true; window.status=mthestatus; } clearTimeout(mpopTimer); } function mmenuitem_out(hassub){ toel = getReal(window.event.toElement, "className", "coolButton"); fromel = getReal(window.event.fromElement, "className", "coolButton"); if (toel == fromel) return; srcel = getReal(window.event.srcElement, "className", "coolButton"); if(!hassub)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 mexec3(j,i){ var cmd; if(eval("msub"+j).items[i].target=="blank"){ cmd = "window.open('"+eval("msub"+j).items[i].command+"')"; }else{ cmd = eval("msub"+j).items[i].target+".location=\""+eval("msub"+j).items[i].command+"\""; } eval(cmd); } 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; } for(x=1;x<=mnumberofsub;x++){ if(srcel.id=="mp"+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+='' } } for(var j=1;j<=mnumberofsub;j++){ thisitem=eval("msub"+j); stringx+='
\n'+ '\n' for(var i=0;i
"+thismenuitem.caption+""; }else if(thismenuitem.pos=="1"){ stringx += ">"+thismenuitem.caption+ifspace+""; }else if(thismenuitem.pos=="2"){ stringx += "background='"+thismenuitem.img+"'>"+thismenuitem.caption+""; }else{ stringx += ">"+thismenuitem.caption+""; } }else{ stringx+='\n'; } } stringx+='
"+ifspace+thismenuitem.caption+""+ifspace+thismenuitem.caption+"
\n
' } document.write("
"+stringx+"
"); } //mpmenu1=new mMenu('首页','/','self','','','',''); //mpmenu2=new mMenu('学校简介','/','self','','','',''); //mpmenu2.addItem(new mMenuItem('学校概况','/','self',false,'学校概况',null,'','','','')); //mpmenu2.addItem(new mMenuItem('校长致辞','/','self',false,'校长致辞',null,'','','','')); //mpmenu2.addItem(new mMenuItem('学校荣誉','/','self',false,'学校荣誉',null,'','','','')); //mpmenu2.addItem(new mMenuItem('教学设施','/','self',false,'教学设施',null,'','','','')); //mpmenu2.addItem(new mMenuItem('校园风光','/','self',false,'校园风光',null,'','','','')); //mpmenu2.addItem(new mMenuItem('师资力量','/','self',false,'师资力量',null,'','','','')); //mpmenu3=new mMenu('新闻中心','/','self','','','',''); //mpmenu3.addItem(new mMenuItem('学校公告','/','self',false,'学校公告',null,'','','','')); //mpmenu3.addItem(new mMenuItem('学校新闻','/','self',false,'学校新闻',null,'','','','')); //mpmenu3.addItem(new mMenuItem('就业求职','/','self',false,'就业求职',null,'','','','')); //mpmenu3.addItem(new mMenuItem('教育新闻','/','self',false,'教育新闻',null,'','','','')); //mpmenu3.addItem(new mMenuItem('招考信息','/','self',false,'招考信息',null,'','','','')); //mpmenu4=new mMenu('专业设置','/','self','','','',''); //mpmenu5=new mMenu('招生信息','/','self','','','',''); //mpmenu5.addItem(new mMenuItem('招生简章','/','self',false,'招生简章',null,'','','','')); //mpmenu5.addItem(new mMenuItem('专业介绍','/','self',false,'专业介绍',null,'','','','')); //mpmenu5.addItem(new mMenuItem('收费标准','/','self',false,'收费标准',null,'','','','')); //mpmenu5.addItem(new mMenuItem('驻外机构','/','self',false,'驻外机构',null,'','','','')); //mpmenu5.addItem(new mMenuItem('在线报名','/','self',false,'在线报名',null,'','','','')); //mpmenu6=new mMenu('远程教育','/','self','','','',''); //mpmenu6.addItem(new mMenuItem('远程教育介绍','/','self',false,'远程教育介绍',null,'','','','')); //mpmenu6.addItem(new mMenuItem('考题下载','/','self',false,'考题下载',null,'','','','')); //mpmenu7=new mMenu('证书查询','/','self','','','',''); //mpmenu8=new mMenu('学校论坛','/','blank','','','',''); //mpmenu9=new mMenu('联络我们','/','self','','','',''); mpmenu1=new mMenu('首页','/','self','','','',''); mpmenu31=new mMenu('学校简介','/info.asp?id=f4c10bf22aa353e2&is=xuxiaogaikuang&i=54','self','','','','');mpmenu31.addItem(new mMenuItem('学校概况','/info.asp?id=f4c10bf22aa353e2&is=xuxiaogaikuang&i=54','self',false,'学校概况',null,'','','',''));mpmenu31.addItem(new mMenuItem('学校荣誉','/Pic_list.asp?id=4cea9109507cacd8&is=picxxrongyu','self',false,'学校荣誉',null,'','','',''));mpmenu31.addItem(new mMenuItem('教学设施','/Pic_list.asp?id=3f027327d8461063&is=picjiaoxuesheshi','self',false,'教学设施',null,'','','',''));mpmenu31.addItem(new mMenuItem('校园文化','/Pic_list.asp?id=fc8586dfa4d1bc0e&is=picxiaoyuanfengguang','self',false,'校园文化',null,'','','',''));mpmenu31.addItem(new mMenuItem('师资力量','/Pic_list.asp?id=c833dff4b38fc8d2&is=picshizililang','self',false,'师资力量',null,'','','',''));mpmenu33=new mMenu('院系设置','/info_list.asp?id=55ce926456240b2f&is=090629663372298608','self','','','','');mpmenu33.addItem(new mMenuItem('应用技术学院','/info_list.asp?id=55ce926456240b2f&is=090629663372298608','self',false,'应用技术学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('农林设计学院','/info_list.asp?id=19c5080b9a6a17be&is=071228486238510820','self',false,'农林设计学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('新青年法学院','/info_list.asp?id=cfa5649e7003b83d&is=080622690886787597','self',false,'新青年法学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('数字动漫学院','/info.asp?id=991e3bef5e069713&is=090629671714854264&i=263','self',false,'数字动漫学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('港务报关学院','/info.asp?id=baf56627478ec76a&is=090720519958476486&i=281','self',false,'港务报关学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('华本房地产学院','/info.asp?id=7a99787bd197eacd&is=090731643533176486&i=284','self',false,'华本房地产学院',null,'','','',''));mpmenu33.addItem(new mMenuItem('航空管理学院','/info.asp?id=94728bc39aa24be9&is=090629670684198608&i=92','self',false,'航空管理学院',null,'','','',''));mpmenu34=new mMenu('招生信息','/info.asp?id=3afb633e50cdf1b2&is=071228478724532042&i=96','self','','','','');mpmenu34.addItem(new mMenuItem('招生介绍','/info.asp?id=3afb633e50cdf1b2&is=071228478724532042&i=96','self',false,'招生介绍',null,'','','',''));mpmenu34.addItem(new mMenuItem('专业介绍','/info.asp?id=754ba1c09b3695e0&is=zyjs&i=136','self',false,'专业介绍',null,'','','',''));mpmenu34.addItem(new mMenuItem('收费标准','/info.asp?id=6a60928b05a7e228&is=sfbz&i=95','self',false,'收费标准',null,'','','',''));mpmenu34.addItem(new mMenuItem('驻外机构','jigou.asp','self',false,'驻外机构',null,'','','',''));mpmenu34.addItem(new mMenuItem('在线报名','baoming.asp','self',false,'在线报名',null,'','','',''));mpmenu32=new mMenu('新闻中心','/info_list.asp?id=7260ae62e3b13968&is=xuexiaogonggao','self','','','','');mpmenu32.addItem(new mMenuItem('学校公告','/info_list.asp?id=7260ae62e3b13968&is=xuexiaogonggao','self',false,'学校公告',null,'','','',''));mpmenu32.addItem(new mMenuItem('学校新闻','/info_list.asp?id=e875a2e075a1a4a6&is=newsS','self',false,'学校新闻',null,'','','',''));mpmenu32.addItem(new mMenuItem('就业求职','/info_list.asp?id=ce56d3d6fa748ab6&is=jiuyeqiuzhi','self',false,'就业求职',null,'','','',''));mpmenu32.addItem(new mMenuItem('教育新闻','/info_list.asp?id=b79421734881b53e&is=jiaoyuxinwen','self',false,'教育新闻',null,'','','',''));mpmenu32.addItem(new mMenuItem('合作办学','/info_list.asp?id=a9ded88f18ecee47&is=080628489020965375','self',false,'合作办学',null,'','','','')); //mpmenu4=new mMenu('学校论坛','/bbs/','blank','','','',''); mpmenu3=new mMenu('证书查询','/zhengshu.asp','self','','','',''); mpmenu36=new mMenu('联络我们','/info.asp?id=ea6328a42e0eb13d&is=contentUs&i=97','self','','','',''); mwritetodocument();