简单的现实问题,请帮忙。。。。 谢谢
当点击组的设置时,用户设置的那部分没有取消掉,也就是有显示到页面了,怎么修改才能点击时置显示相应的部分。。。。。
<%@ page contentType="text/html; charset=gb2312" %>
<script lauguage="javascript">
function change_prev()
{
window.font_prev.style.fontWeight="bold";
window.font_group.style.fontWeight="";
document.all.prev.style.display='';
document.all.group.style.display='none';
}
function change_group()
{
window.font_prev.style.fontWeight="";
window.font_group.style.fontWeight="bold";
document.all.prev.style.display='none';
document.all.group.style.display='';
}
function change_style(i_d)
{
switch(i_d){
case "prev":change_prev();break;
case "group":change_group();break;
default:break;
}
}
</script>
<table BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% align=right ><tr><td align="right" valign="top" >
<table bgcolor="##99CCFF" cellspacing="0" BORDER=0 CELLPADDING=0 CELLSPACING=0 ><tr>
<td valign="top" height="25" background="../images/whitebackground.gif" valign="center" style="cursor:hand;BORDER-BOTTOM: ##6699FF 1px solid;
BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #000000 1px solid; "
onclick="change_style('prev');" id="button_prev"><font id=font_prev> 用户设置
</font></td>
<td valign="top" height="25" background="../images/whitebackground.gif" valign="center" style="cursor:hand;BORDER-BOTTOM: #FDDCCC 1px solid;
BORDER-LEFT: #ffffff 1px solid; BORDER-RIGHT: #000000 1px solid; "
onclick="change_style('group');" id="button_group"><font id=font_group> 组的设置
</font></td>
</table>
</td></tr></table><br>
<table BORDER=0 CELLPADDING=0 CELLSPACING=0 width=100% align=left>
<div align=left id="prev" style="display:none;">
<table>
<tr><td>
<a href="first.jsp">aa</a>
</td></tr>
</table>
</div>
<div id="group" style="display:none;">
<table>
<tr><td>
<a href="first.jsp">bb</a>
</td></tr>
</table>
</div>
</table>