函数显示不出来 求解

zjkhwj 2011-11-30 11:11:54
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>树形菜单</title>
<link href="style/global.css" type="text/css" rel="stylesheet" />
<style type="text/css">
<!--
.STYLE11 {
font-family: "微软雅黑";
color: #82D0D5;
font-size: 20px;
}
-->
</style>

</head>
<script language='javascript'>
<!--
current_div_id = -1;
function show_f(div_id)
{
document.all.item('b1').style.display = 'none';
document.all.item('b2').style.display = 'none';
document.all.item('b3').style.display = 'none';
document.all.item('b'+div_id).style.display = 'block';

//如果不是第一次点击菜单项
if (current_div_id != -1)
{
document.all.item('link'+current_div_id).style.color = '#000000';
}
}

function show_jsp(div_id)
{

document.all.item('j11').style.display = 'none';
document.all.item('j12').style.display = 'none';
document.all.item('j21').style.display = 'none';
document.all.item('j22').style.display = 'none';
document.all.item('j23').style.display = 'none';
document.all.item('j24').style.display = 'none';
document.all.item('j25').style.display = 'none';
document.all.item('j31').style.display = 'none';
document.all.item('j32').style.display = 'none';
document.all.item('j'+div_id).style.display = 'block';
//如果不是第一次点击菜单项
if (current_div_id != -1)
{
document.all.item('link'+current_div_id).style.color = '#000000';
}
}

function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}


function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

-->
</script>

<style type="text/css">
.div11{
font-size: 24px;
}
.div12{
font-size: 18px;
}
.div13{
}
.STYLE12 {
font-size: 17px;
font-family: "微软雅黑";
color: #0033CC;
}
.STYLE14 {font-size: 23px; font-family: "微软雅黑"; color: #82D0D5; }
</style>

<body>
<ul class="ul_menu">
<li><a>首页</a></li>
<li ><a>关于我们</a></li>
<li ><a>解决方案</a></li>
<li ><a>体验中心</a></li>
<li ><a>服务&支持</a></li>
<li ><a>加入我们</a></li>
<li ><a>联系我们</a></li>
</ul>
<table width="100%" height="20" background=<img name="Image21" /> >
<tr><td width="23%"></td>
<td width="18%"><div class="div11 STYLE11" style="cursor:hand;" onClick="show_f('1')" onMouseMove="show_f('1')"><span class="div11 STYLE11" style="cursor:hand;"><a onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image21','','images/navbg.png',1)">工会管理</a></span></div></td>
<td width="6%"></td>
<td width="10%"><div class="STYLE14" id='link1' style="cursor:hand;" onClick="show_f('2')" onMouseMove="show_f('2')"></div></td>
<td width="2%"></td>
<td width="10%"><div class="STYLE14" id='link1' style="cursor:hand;" onClick="show_f('3')" onMouseMove="show_f('3')"></div></td>
<td width="31%"></td>
</tr>
</table>
<div id='b1' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td><div class="STYLE12" onClick="show_jsp('11')" id='link1' style="cursor:hand;">查看固定资产    </div></td>
<td><div class="STYLE12" onClick="show_jsp('12')" id='link1' style="cursor:hand;">增加工会</div></td>
</tr>
</table>
</div>
<div id='b2' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td><div class="STYLE12" onClick="show_jsp('21')" id='link1' style="cursor:hand;">查看互助会会员    </div></td>
<td><div class="STYLE12" onClick="show_jsp('22')" id='link1' style="cursor:hand;">查看双代会代表    </div></td>
<td><div class="STYLE12" onClick="show_jsp('23')" id='link1' style="cursor:hand;">查看运动会代表    </div></td>
<td><div class="STYLE12" onClick="show_jsp('24')" id='link1' style="cursor:hand;">增加会员    </div></td>
<td><div class="STYLE12" onClick="show_jsp('25')" id='link1' style="cursor:hand;">查找会员</div></td>
</tr>
</table>
</div>
<div id='b3' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td><div class="STYLE12" onClick="show_jsp('31')" id='link1' style="cursor:hand;">会员信息导入    </div></td>
<td><div class="STYLE12" onClick="show_jsp('32')" id='link1' style="cursor:hand;">工会固定资产导入</div></td>
</tr>
</table>
</div>

<div id='j11' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="showlabourproperty.jsp"%></td>
</tr>
</table>
</div>
<div id='j12' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="addlabour.jsp"%></td>
</tr>
</table>
</div>
<div id='j21' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0' align="center">
<tr align="center">
<td height="26" class="STYLE2" width="100%" align="center"><%@ include file="showhelp.jsp"%></td>
</tr>
</table>
</div>
<div id='j22' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="showrepresent.jsp"%></td>
</tr>
</table>
</div>
<div id='j23' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="showsportsman.jsp"%></td>
</tr>
</table>
</div>
<div id='j24' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="adduser.jsp"%></td>
</tr>
</table>
</div>
<div id='j25' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="searchuser.jsp"%></td>
</tr>
</table>
</div>
<div id='j31' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="insertuserinfo.jsp"%></td>
</tr>
</table>
</div>
<div id='j32' style='display:none'>
<table CELLSPACING='0' CELLPADDING='0'>
<tr>
<td height="26" class="STYLE2"><%@ include file="insertlabourinfo.jsp"%></td>
</tr>
</table>
</div>
</div>
</body>

</html>
...全文
105 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
连问问题都不会
p2227 2011-11-30
  • 打赏
  • 举报
回复
同问,没java环境调试 不了楼主的代码
默默不得鱼 2011-11-30
  • 打赏
  • 举报
回复
要什么效果?

87,989

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧