分享java帶來的快樂

          我喜歡java新東西

          導航

          <2025年6月>
          25262728293031
          1234567
          891011121314
          15161718192021
          22232425262728
          293012345

          統計

          常用鏈接

          留言簿(8)

          文章分類

          文章檔案

          相冊

          收藏夾

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          鼠標劃過高亮度顯示所在的行

          <table width=100% bgcolor=cccccc onmouseout="select_row(null)">
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>


          </table>
          <script language="javascript">  
            var   theCurrentTr;  
            function   select_row(obj)  
            {  
            if(theCurrentTr!=null)   theCurrentTr.bgColor="";  
            theCurrentTr=obj;  
            if(theCurrentTr!=null)   theCurrentTr.bgColor="blue";  
             
            }  
            </script>

          <br>
          <br>
          移出時還記錄最后鼠標所在的行:
          <table width=100% bgcolor=cccccc>
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>
           <tr id="row0" onmouseover="select_row(this)">
            <td>
             ...
            </td>
           </tr>


          </table>

          posted on 2008-12-20 17:19 強強 閱讀(257) 評論(0)  編輯  收藏 所屬分類: web技巧

          主站蜘蛛池模板: 浑源县| 玉树县| 清涧县| 正蓝旗| 孟连| 云梦县| 乳山市| 阳城县| 峡江县| 东莞市| 囊谦县| 榆社县| 集贤县| 苏州市| 白城市| 昔阳县| 镇原县| 白玉县| 监利县| 塔河县| 唐山市| 吉木乃县| 阳泉市| 罗甸县| 徐州市| 历史| 茂名市| 天津市| 石嘴山市| 兴国县| 隆昌县| 游戏| 崇仁县| 西畴县| 墨玉县| 大埔区| 广灵县| 尤溪县| 博白县| 九龙县| 石棉县|