当前位置:编程学习 > C#/ASP.NET >>

关于表格节点的问题

  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="tableBorderStyle_Bg1"
            style="border-top: 0px; border-bottom: 0px;" onmouseover='this.style.backgroundColor="#E6E6E6"'
            onmouseout='this.style.backgroundColor=""'>
        
            <tr>
                <td  align="left" class="style20">
            <img src="../images/org06.gif" id="img1" style="height: 22px; width: 20px"  onclick="return LoadDiv()" /></td>
                <td   align="left" class="style21"  style="font-size:16px;">
                   <a href="#" onclick="return LoadDiv(this)"><strong>打开或关闭</strong> </a> <input type="button"  value="添加记录" onclick="win('ClientMng/CMSalesChancesAdd.aspx', 700, 450, '添加销售机会', CMSalesChancesList, false, false, null);"/></td>
                <td   align="left">
                     </td>
            </tr>
            <tr>
                <td colspan="3" >
                    <hr style="border: 1px solid #FFCFB2; width: 100%; padding: 0px; margin: 0px;" />
                </td>
            </tr>
            <tr>
               <td colspan="3"  style="background-color:#FFFFFF;">
               <div id="CustomerAccount" ></div>
               </td>
            </tr>
            <tr>
                <td colspan="3" style="height: 10px;">
                </td>
            </tr>
        </table>


请问我点击  打开或关闭  然后使 ID为 CustomerAccount 的<div>隐藏,
不用ID属性,因为我的 onclick事件要是通用的 --------------------编程问答--------------------
补充:.NET技术 ,  ASP.NET
CopyRight © 2022 站长资源库 编程知识问答 zzzyk.com All Rights Reserved
部分文章来自网络,