JavaScript@Workshop 
HOME > DHTML サンプル集 > テーブル選択行をマウスカーソルによって背景色を変える
テーブル選択行をマウスカーソルによって背景色を変える

サンプルソース

<table border=1 width=100%>
<tr onmouseover="this.style.backgroundColor='#cccccc'" onmouseout="this.style.backgroundColor='#ffffff'"><td>テキスト1
<tr onmouseover="this.style.backgroundColor='#cccccc'" onmouseout="this.style.backgroundColor='#ffffff'"><td>テキスト1
<tr onmouseover="this.style.backgroundColor='#cccccc'" onmouseout="this.style.backgroundColor='#ffffff'"><td>テキスト1
<tr onmouseover="this.style.backgroundColor='#cccccc'" onmouseout="this.style.backgroundColor='#ffffff'"><td>テキスト1
<tr onmouseover="this.style.backgroundColor='#cccccc'" onmouseout="this.style.backgroundColor='#ffffff'"><td>テキスト1
</table>


サンプル

関連する内容



スポンサードリンク



Copyright (C) 2006-2008 JavaScript@Workshop All rights reserved.