读书人

鼠标透过时改变表格背景颜色

发布时间: 2012-12-22 12:05:06 作者: rapoo

鼠标经过时,改变表格背景颜色

<%@ 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>

读书人网 >编程

热点推荐