<div class="htmlarea"> <textarea id="runcode8498"> <title>テーブルハイライト</title> <meta http-equiv="Content-Type" content="text/html; charset=gbk"> <style type="text/css"> * { font-size: 11px; font-family: verdana, arial, sans-serif; } table { border: 1px solid #ccc; margin: 0 auto; } th { background-color: #f7f7f7; } td, th { padding: 15px; border: 1px solid #ccc; } tr.alternate { background-color: #efd; } .bold { font-weight: bold; } .red { color: red; font-weight: bold; } .blue { background-color: blue; } /* Used with crosshairs.js */ .hoverHilight { background-color: #ffffc0; cursor: pointer; } .activeCellHilight { background-color: #c0dbff; color: blue; } </style> <table id="crossTable"> <tr> <th> </th> <th>缂栧彿</th> <th>濮撳悕</th> <th>鍦板潃</th> <th>鐢佃瘽</th> </tr> <tr> <td class="bold">1</td> <td onmouseover="addHilight(this);" onmouseout="removeHilight(this);">a1</td> <td>b1</td> <td>c1</td> <td>d1</td> </tr> <tr class="alternate"> <td class="bold">2</td> <td>a2</td> <td>b2</td> <td>c2</td> <td>d2</td> </tr> <tr> <td class="bold">3</td> <td>a3</td> <td>b3</td> <td>c3</td> <td>d3</td> </tr> <tr class="alternate"> <td class="bold">4</td> <td>a4</td> <td>b4</td> <td>c4</td> <td>d4</td> </tr> <tr> <td class="bold">5</td> <td>a5</td> <td>b5</td> <td>c5</td> <td>d5</td> </tr> </table> </textarea> <br> <input onclick="runEx('runcode8498')" type="button" value="杩愯"> </div>