⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 menu.js

📁 java socket编程
💻 JS
字号:
//--------------- 主导航条内容 ------------//
var mainLayer=new Array("了解东大","光辉校史","快速链接","院系导航","管理部门","直属部门","校内资源");//主导航栏目
var mainLayerHttp=new Array("intro_index.htm","history_index.htm","map_index.htm#quicklink","map_index.htm#college","map_index.htm#admin","map_index.htm#direct","map_index.htm#source");//主导航栏目

//--------------- 次导航条内容 ------------//
var subLayer0=new Array("东大简介","现任领导","院士风采","校园导游"); //导航栏目一下的次级栏目
var subLayerHttp0=new Array("intro_info.htm","intro_leader.htm","intro_academician.htm","intro_guide.htm");//主导航栏目一下的次级栏目连接地址
var subLayer1=new Array("张学良老校长","光辉校史");//导航栏目二的次级栏目
var subLayerHttp1=new Array("history_zhangxueliang.htm","history_history.htm");//主导航栏目二的次级栏目连接地址
var subLayer2=new Array("校友总会","东北大学图书馆","东大新闻网","东大视点网","团委先锋网","招生信息网","研究生院网上办公","就业信息网","科技产业集团","东软集团","东软信息学院","校园网服务","CERNET东北地区中心");
//var subLayerHttp2=new Array("http://218.25.88.196/friend/","http://202.118.8.4","http://neunews.neu.edu.cn:8080","http://www.viewsite.neu.edu.cn","http://www.neupioneer.com","http://www.neuzs.com","http://www.graduate.neu.edu.cn","http://job.neu.edu.cn","/cyjt","http://www.neusoft.com","http://www.neusoft.edu.cn","/network","http://www.synet.edu.cn");
var subLayerHttp2=new Array("http://www.neualumni.org.cn","http://202.118.8.4","http://neunews.neu.edu.cn:8080","http://www.viewsite.neu.edu.cn","http://www.neu-pioneer.cn/","http://www.neuzs.com","http://study.neu.edu.cn","http://job.neu.edu.cn","http://www.neucy.cn/","http://www.neusoft.com","http://www.neusoft.edu.cn","/network/","http://www.synet.edu.cn");
var subLayer3=new Array("文法学院","工商管理学院","理学院","资源与土木工程学院","材料与冶金学院","机械工程与自动化学院","信息科学与工程学院","外国语学院","基础学院","秦皇岛分校","软件学院","中荷生物医学与信息工程学院","艺术学院","体育部");
var subLayerHttp3=new Array("http://www.wfxy.neu.edu.cn","http://sba.neu.edu.cn","http://219.216.105.184","/zitu","http://www.smm.neu.edu.cn","http://202.118.12.249","http://202.118.18.14/","http://219.216.103.103","http://jichu.neu.edu.cn/","http://www.neuq.edu.cn","http://swc.neu.edu.cn","http://www.bmie.neu.edu.cn/","http://www.arts.neu.edu.cn/","/sport");
var subLayer4=new Array("党办[统战部]","校长办公室","组织部","宣传部","纪委办","工会","团委","研究生院","学科建设与发展处","教务处","科学技术处","人事处","学生工作处","计划财经处","资产管理处","国际合作与交流处","国际交流学院","保密办","公安处","审计处","后勤管理处","基建管理处","离退休工作处");
var subLayerHttp4=new Array("/dangban/","http://202.118.31.39/","/zuzhibu","http://202.118.27.118:8080/xcb/","/neujw","/gonghui","http://www.neu-pioneer.cn/","http://www.graduate.neu.edu.cn","http://xkjs.neu.edu.cn","http://202.118.27.146","http://202.118.27.180","http://202.118.27.233/","http://xsc.neu.edu.cn/","http://jcc.neu.edu.cn","http://202.118.27.100","/waishi","http://202.118.20.38/","/bmb","http://gach.neu.edu.cn","/sjc","/hqglc","/jjc","/ltx");
var subLayer5=new Array("图书馆","计算中心","网络中心","网络教育学院","继续教育学院","学生指导服务中心","档案馆","出版社","学报编辑部","软件中心","重点实验室","自动化研究中心","后勤服务中心","科技产业集团","实业总公司","校医院");
var subLayerHttp5=new Array("http://202.118.8.4","/jisuan","/network/","http://necweb.neu.edu.cn","http://202.97.181.69/","http://zdfw.neu.edu.cn","http://202.118.23.156:8080","http://www.neupress.com","http://xuebao.neu.edu.cn/","http://www.neusoft.com","http://www.ral.neu.edu.cn","http://www.a-center.neu.edu.cn","http://202.118.31.211/lmis_system_manage/sy/default.aspx","http://www.neucy.cn/","/shiye","http://202.118.20.232/");
var subLayer6=new Array("网络中心黑板报","校园网IP控制网关","校园网用户管理","邮件服务","VPN服务","网络应急响应组NEUCERT","校内防病毒服务","校内Windows补丁升级","校内在线电视","校内视频点播","校历","常用电话","校标校名","白山黑水BBS","东北大学FTP搜索引擎","校内FTP","IP地址归属查询","大学课程在线","东北大学MAP","本站地图","关于我们");
var subLayerHttp6=new Array("http://network.neu.edu.cn","http://ipgw.neu.edu.cn","http://tree.neu.edu.cn","http://mail.neu.edu.cn","http://vpn.neu.edu.cn","http://neucert.neu.edu.cn","http://antivirus.neu.edu.cn","http://wsus.neu.edu.cn","http://tv.neu.edu.cn","http://vod.neu.edu.cn","info_calender.htm","info_phonenumber.htm","info_title.htm","http://bbs.neu.edu.cn","http://search.neu.edu.cn/","ftp://ftp.neu.edu.cn","/network/queryip/index.php","http://realcourse.grids.cn/","/files/map/index.htm","map_index.htm","about_index.htm");


//--------------- 主导航条Table参数调整 ------------//
var mainTableTdWidth=75; //每个TD的宽度,调整主导航内容间距
var mainTableTdHeight=20;
var mainTableBorder=0; //调整主导航表格边框宽度
var mainTableCellspacing=0; //调整主导航表格Cellspacing
var mainTableCellpadding=0; //调整主导航表格Cellpadding
var mainTableBgcolor="#f5f5f5"; //调整主导航表格背景色
var mainTableBordercolor=""; //调整主导航表格编框颜色
var mainTableBackgroundImg=""; //调整主导航表格背景图片url地址
var mainTitleClassName="topmenutitle"; //调整主导航表格的CSS类名称
var hrefClassName="topmenu"; //调整url风格样式
var mainTableTdBgcolor="#f5f5f5"; //调整主导航表格Td色

//--------------- 次导航条Table参数调整 ------------//
var subTableBorder=0; //调整次导航条表格边框宽度
var subTableCellspacing=0; //调整次导航条表格Cellspacing
var subTableCellpadding=1; //调整次导航条表格Cellpadding
var subTableBgcolor="#f5f5f5"; //调整次导航条表格背景色
var subTableBordercolor=""; //次导航条表格编框颜色
var subTableBackgroundImg=""; //次导航条表格背景图片url地址
var subTableTdBgcolor="#f5f5f5"; //调整次导航表格Td色
var sbuTabbleTop=20; //次导航表格上下微调
var sbuTabbleLeft=5; //次导航表格左右微调

//--------------- 系统参数*请勿调整 ------------//
var layerMax=mainLayer.length+10;
var layerName="index"

//--------------- 生成下拉菜单 ------------//
function createMainLayer(){ 
document.write("<table border=0 cellspacing=0 cellpadding=0><tr><td><div id='wall' onmouseout=layervib('visible','"+layerMax+"') style='position:relative; left:0px; top:0px; width:100%; z-index:1' ><table height="+mainTableTdHeight+" border='"+mainTableBorder+"' cellspacing='"+mainTableCellpadding+"' cellpadding='"+mainTableCellpadding+"' bgcolor='"+mainTableBgcolor+"' bordercolor='"+mainTableBordercolor+"' background='"+mainTableBackgroundImg+"'><tr>");
for(i=0;i<mainLayer.length;i++){
document.write("<td width='"+mainTableTdWidth+"' height='"+mainTableTdHeight+"' bgcolor='"+mainTableTdBgcolor+"' class='"+mainTitleClassName+"' onmouseover=layervib('visible','"+i+"')><a href='"+mainLayerHttp[i]+"' class='"+mainTitleClassName+"'>"+mainLayer[i]+"</a></td>");
}
document.write("</tr></table>");

for(j=0;j<mainLayer.length-2;j++){
createSubLayer(j,140,0);
}
//for(j=mainLayer.length-2;j<mainLayer.length;j++)
//{
createSubLayer(mainLayer.length-2,140,0);
createSubLayer(mainLayer.length-1,140,70);
//}
document.write("</div></td></tr></table>");
}


//--------------- 生成每项下拉菜单内容 ------------//
function createSubLayer(num,divWidth,offset){
var subLayerName= layerName +num;
var subLayerLeft=(mainTableTdWidth*num)+mainTableCellpadding+mainTableBorder;
var subLayerList=eval("subLayer"+num);
var subLayerLeftMargin=subLayerLeft+sbuTabbleLeft-offset;
//var LayerID=eval("Layer"+num);
var subLayerHttpList=eval("subLayerHttp"+num);
document.write("<div id='"+subLayerName+"' style='position:absolute; left:"+subLayerLeftMargin+"px; top:"+((mainTableBorder+mainTableCellspacing+mainTableCellpadding)*2+sbuTabbleTop)+"px; z-index:2; height: 24px; visibility: hidden' onmouseover=layervib('visible','"+num+"') onmouseout=layervib('visible','"+layerMax+"')>");
if(subLayerList.length!=0){
document.write("<table width='"+divWidth+"' border='"+subTableBorder+"' cellspacing='"+subTableCellpadding+"' cellpadding='"+subTableCellpadding+"' bgcolor='"+subTableBgcolor+"' bordercolor='"+subTableBordercolor+"' background='"+subTableBackgroundImg+"'") 
for(h=0;h<subLayerList.length;h++){ 
//var itemID=eval('item_'+num+'_'+h);
document.write("<tr><td id='item"+num+"_"+h+"' onmouseover=changelight('item"+num+"_"+h+"','dropmenuHIGH') onmouseout=changelight('item"+num+"_"+h+"','dropmenu')  bgcolor='"+subTableTdBgcolor+"' width='100%' class='"+hrefClassName+"'><a href='"+ subLayerHttpList [h]+"' class='"+hrefClassName+"'>&nbsp;"+subLayerList[h]+"</a></td></tr>");
document.write("<tr><td bgcolor='#4B6B9A' height='1' width='100%'></td></tr>");
//document.write("<tr><td bgcolor='"+subTableTdBgcolor+"' width='100%' class='link'><font size='2'><a href='"+ subLayerHttpList [h]+"' class='link'>"+subLayerList[h]+"</a></font></td></tr>");
}
document.write("</table>");
}
document.write("</div>"); 
}

//Highlight function.  Change the specified object's class to the specified class name.  Class must be in main CSS file or in page itself.
function changelight(row, stylename) {
eval('document.all.' + row + '.className = "' + stylename + '"');
}


//------------------------------次菜单显隐控制--------------------------//
function layervib(type,num){
var H=type;
var temp=(H='visible'?'hidden':'visible')
for(var i=0;i<mainLayer.length;i++){
var E=eval('document.all.index'+i+'.style');
//var E=eval('document.getElementById(index'+i+').style');
var H=eval(i);
if(i==num){E.visibility=type}else{E.visibility=temp};
}
}

function switchCell(n) {
	for(i=0;i<navcell.length;i++){
		navcell[i].className="tab-off";
		tb[i].style.display="none";
	}
	navcell[n].className="tab-on";
	tb[n].style.display="block";
	//tb_content.height=screen.availHeight-tb_header.clientHeight-tb_navbar.clientHeight-tb_footer.clientHeight-64;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -