如题:就是鼠标放在哪一行,哪一行的背景色变得不一样,就是所谓的高亮显示然后,双击之后可以取得行的ID,然后跳转到指定页面
请大家帮忙解惑!

解决方案 »

  1.   

    <tr id="aaa" onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699FF'" onmouseout="this.style.backgroundColor=currentcolor"
    onclick="alert(this.aaa)"
    ></tr>
      

  2.   

    <tr id="aaa" onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#6699FF'" onmouseout="this.style.backgroundColor=currentcolor"
    onclick="alert(this.id)"
    ></tr>更正div也有效
      

  3.   

    <li onclick="window.location.href='index.aspx?id=<%#Eval("Id")%>'" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#000000'"></li>
      

  4.   

    我选中的行里面的ID,我怎么传到这里来<script type="text/javascript">
                function rowClick() {
                    var sRet = window.showModalDialog('KH_Basics_List.aspx?ID=这里面怎么写tr的值', window, 'dialogWidth=720px;dialogHeight=500px');                
                }
            </script>
      

  5.   

    哎呦,自己被javascript绕进去了,小问题,自己解决了,谢谢两位的解答,winform转webform中,很多细节不明白...