[img]http://dl.iteye.com/upload/attachment/0076/0070/e83a8077-7cde-3db8-ba1a-9f62460972a5.png[/img]
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>鼠标经过时,改变表格背景颜色</title>
</head>
<body>
<table width="500" border="1" cellpadding="0" cellspacing="0">
<tr>
<td width="500" height="20" align="right" bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#FF9900'" onmouseout="style.backgroundColor='#FFFFFF'">1</td>
</tr>
<tr>
<td width="500" height="20" align="right" bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#FF9900'" onmouseout="style.backgroundColor='#FFFFFF'">2</td>
</tr>
<tr>
<td width="500" height="20" align="right" bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#FF9900'" onmouseout="style.backgroundColor='#FFFFFF'">3</td>
</tr>
<tr>
<td width="500" height="20" align="right" bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#FF9900'" onmouseout="style.backgroundColor='#FFFFFF'">4</td>
</tr>
<tr>
<td width="500" height="20" align="right" bgcolor="#FFFFFF" onmouseover="style.backgroundColor='#FF9900'" onmouseout="style.backgroundColor='#FFFFFF'">5</td>
</tr>
</table>
</body>
</html>