<script>
function sbar (st) { st.style.backgroundColor = '#e1e1e1';}
function cbar (st) { st.style.backgroundColor = '';}
function bbar (st) { st.style.backgroundColor = '#ffcc99';}
</script>
?>
<tr height="21" align="center" onMouseOver="sbar(this)" onMouseOut ="cbar(this)" >
<td> <?= $i; ?> </td>
<td><a href="#" onClick="window.open('seminar_view.php?seminar_id=<? echo mysql_result($result,$r,0); ?>','new','resizable=no width=700 height=800 scrollbars=1');return false"><? echo mysql_result($result,$r,1); ?></a></td>
<td> <? echo mysql_result($result,$r,3); ?> </td>
<td> <? echo mysql_result($result,$r,4); ?> </td>
<td> <? echo mysql_result($result,$r,9); ?> </td>
<td> <? echo mysql_result($result,$r,18); ?> </td>
<td> <? echo mysql_result($result,$r,23); ?> </td>
<td><input type="button" onMouseOver="bbar(this)" onMouseOut ="cbar(this)" onClick="window.open('seminar_view.php?member_id=<? echo mysql_result($result,$r,0); ?>','new', 'resizable=no, width=800, height=500, scrollbars=1');return false" value="등록회원"></td>
</tr>
<?
출처 HTML 게시판 테이블 마우스 오버시 색깔 바꾸기|작성자 루이