<%@ Page Language="C#" AutoEventWireup="true" CodeFile="img.aspx.cs" Inherits="img" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>无标题页</title>
<script language="javascript" type="text/javascript">
function doMouseMove(obj)
{
obj.style.background='#99FFFF';
div_memo.innerText=obj.all.memo.value;
}
</script>
</head>
<body>
<div align="left" id="div_memo">
</div>
<form id="form1" runat="server">
<table>
<tr class="textfield1" onMouseMove="doMouseMove(this)" onMouseOut="this.style.background=''; this.style.borderColor=''">
<td >aaabbbccc<input name=memo value=aaa></td></tr>
<tr class="textfield1" onMouseMove="doMouseMove(this)" onMouseOut="this.style.background=''; this.style.borderColor=''">
<td>
aaabbbccc<input name=memo value=bbb></td></tr>
<tr class="textfield1" onMouseMove="doMouseMove(this)" onMouseOut="this.style.background=''; this.style.borderColor=''">
<td>
aaabbbccc<input name=memo value=ccc></td></tr>
</table>
</form>
</body>
</html>
也可以试一下 onmouseover