menu.js.svn-base

来自「spring+hibernate做的网上订餐系统」· SVN-BASE 代码 · 共 127 行

SVN-BASE
127
字号
var sPath = document.location.pathname;
sPath = "/"+sPath.split("/")[1]+"/";
function head(){
	document.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
	document.write("<td height=\"90\" valign=\"top\" background=\""+sPath+"images/top_bg.gif\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
	document.write("<td height=\"30\">&nbsp;</td>");
	document.write("</tr>");
	document.write("<tr>");
	document.write("<td height=\"60\" valign=\"bottom\"><table width=\"778\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">");
	document.write("<tr>");
	document.write("<td width=\"228\" align=\"left\"><img src=\""+sPath+"images/top_logo.gif\" width=\"209\" height=\"51\"></td>");
	document.write("<td width=\"550\" valign=\"bottom\"><table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
}

function home_j(){
	document.write("<td><a href=\""+sPath+"index.jspx\"><img src=\""+sPath+"images/home_over.gif\" width=\"103\" height=\"33\" border=\"0\"></a></td>");
}

function home_d(){
	document.write("<td><a href=\""+sPath+"index.jspx\"><img src=\""+sPath+"images/home_out.gif\" width=\"103\" height=\"33\" border=\"0\" onmouseover=\"this.src='"+sPath+"images/home_over.gif'\" onmouseout=\"this.src='"+sPath+"images/home_out.gif'\"></a></td>");
}


function online_j(){
	document.write("<td><a href=\""+sPath+"online.jspx\"><img src=\""+sPath+"images/dz_over.gif\" width=\"103\" height=\"33\" border=\"0\"></a></td>");
}

function online_d(){
	document.write("<td><a href=\""+sPath+"online.jspx\"><img src=\""+sPath+"images/dz_out.gif\" width=\"103\" height=\"33\" border=\"0\" onmouseover=\"this.src='"+sPath+"images/dz_over.gif'\" onmouseout=\"this.src='"+sPath+"images/dz_out.gif'\"></a></td>");
}

function ts_j(){
	document.write("<td><a href=\""+sPath+"tsct.jspx\"><img src=\""+sPath+"images/ts_over.gif\" width=\"103\" height=\"33\" border=\"0\"></a></td>");
}


function ts_d(){
	document.write("<td><a href=\""+sPath+"tsct.jspx\"><img src=\""+sPath+"images/ts_out.gif\" width=\"103\" height=\"33\" onmouseover=\"this.src='"+sPath+"images/ts_over.gif'\" onmouseout=\"this.src='"+sPath+"images/ts_out.gif'\" border=\"0\"></a></td>");
}


function ys_j(){
	document.write("<td><a href=\""+sPath+"yswh.jspx\"><img src=\""+sPath+"images/ys_over.gif\" width=\"103\" height=\"33\" border=\"0\"></a></td>");
}

function ys_d(){
	document.write("<td><a href=\""+sPath+"yswh.jspx\"><img src=\""+sPath+"images/ys_out.gif\" width=\"103\" height=\"33\" onmouseover=\"this.src='"+sPath+"images/ys_over.gif'\" onmouseout=\"this.src='"+sPath+"images/ys_out.gif'\" border=\"0\"></a></td>");
}

function about_j(){
	document.write("<td><a href=\""+sPath+"about.jspx\"><img src=\""+sPath+"images/about_over.gif\" width=\"103\" height=\"33\" border=\"0\"></a></td>");
}


function about_d(){
	document.write("<td><a href=\""+sPath+"about.jspx\"><img src=\""+sPath+"images/about_out.gif\" width=\"103\" height=\"33\" border=\"0\" onmouseover=\"this.src='"+sPath+"images/about_over.gif'\" onmouseout=\"this.src='"+sPath+"images/about_out.gif'\"></a></td>");
}

function home(){
	head();
	home_j();
	online_d();
	ts_d();
	ys_d();
	about_d();
	end();
}


function online(){
	head();
	home_d();
	online_j();
	ts_d();
	ys_d();
	about_d();
	end();
}

function tsct(){
	head();
	home_d();
	online_d();
	ts_j();
	ys_d();
	about_d();
	end();
}

function yswh(){
	head();
	home_d();
	online_d();
	ts_d();
	ys_j();
	about_d();
	end();
}

function about(){
	head();
	home_d();
	online_d();
	ts_d();
	ys_d();
	about_j();
	end();
}

function end(){
	document.write("</tr>");
	document.write("</table></td>");
	document.write("</tr>");
	document.write("</table></td>");
	document.write("</tr>");
	document.write("</table></td>");
	document.write("</tr>");
	document.write("</table>");
	document.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">");
	document.write("<tr>");
	document.write("<td height=\"4\" bgcolor=\"#C50301\"></td>");
	document.write("</tr>");
	document.write("</table>");
}

⌨️ 快捷键说明

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