JS代码:
function ToggleNode(nodeObject, imgObject,imgout,imgover){
if (nodeObject.style.display == '' || nodeObject.style.display == 'inline') {
nodeObject.style.display = 'none';
imgObject.src=imgover;
} else {
nodeObject.style.display = 'inline';
imgObject.src=imgout;
}
}
页面代码:
<table cellspacing="0" cellpadding="0" width="180" border="0">
<tr style="CURSOR: hand" onclick="ToggleNode(menu02,arrow02,'images/arrow01top.gif','images/arrow01bottom.gif')">
<td>
<table style="COLOR: #215dc6;height:20" cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td align="left"><b> 综合查询</b></td>
<td align="right"></td>
</tr>
</table>
</td>
</tr>
<tr id="menu02">
<td>
</td>
</tr>
</table>
<br/>
<!--左侧菜单3-->
<table cellspacing="0" cellpadding="0" width="180" border="0">
<tr style="CURSOR: hand" onclick="ToggleNode(menu04,arrow04,'images/arrow01top.gif','images/arrow01bottom.gif')">
<td >
<table cellspacing="0" cellpadding="0" width="100%" border="0">
<tr>
<td align="left"><b> 统计汇总</b></td>
<td align="right"></td>
</tr>
</table>
</td>
<