房地产营销的地位:怎样出现鼠标经过就变颜色的表格?

来源:百度文库 编辑:高校问答 时间:2024/04/29 04:41:10
经常见网页的导航条是那种的,鼠标一经过就会变颜色
但那不是flash 最常用的是哪种方式?详细一点
最好有源码,事后重谢!!!

onMouseOver="this.bgColor='#DDDDDD';" onMouseOut="this.bgColor='#f4f4f4';"

onmouseOver与onmouserOut事件,定义style

代码呀,太多了,给你一个地址,全是代码,网页的,FLASH的,很多很多,就是代码爱好者:
http://www.codecn.net
你去淘宝吧!

记号

用这句吧:onmouseover="this.style.background='#222'; " onmouseout ="this.style.background=''; this.style.borderColor=''"
下面这个是完整例子:)

<html>
<head>
<meta http-equiv="Content-Type" content="tet/html; charset=gb2312">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>New Page</title>
<style>
<!--
body { font-size: 8pt; font-family: Tahoma }
td { font-size: 8pt; font-family: Tahoma; padding: 2 }
-->
</style>
</head>
<body>
<div align="center">
<center>
<table border="1" width="400" cellspacing="0" cellpadding="0">
<tr onmouseover="this.style.background='#222'; " onmouseout ="this.style.background=''; this.style.borderColor=''" >
<td width="49">X</td>
<td width="49">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
</tr>
<tr onmouseover="this.style.background='#222'; " onmouseout ="this.style.background=''; this.style.borderColor=''" >
<td width="49">X</td>
<td width="49">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
<td width="50">X</td>
</tr>
</table>
</center>
</div>
</body>
</html>