| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1060 人关注过本帖
标题:[求助]如何实现如同163邮箱中的,当鼠标放上去的时候该行变色?
只看楼主 加入收藏
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
 问题点数:0 回复次数:7 
[求助]如何实现如同163邮箱中的,当鼠标放上去的时候该行变色?
[求助]如何实现如同163邮箱中的,当鼠标放上去的时候该行变色?

谢谢了
搜索更多相关主题的帖子: 163邮箱 鼠标 变色 
2006-09-28 16:03
live41
Rank: 10Rank: 10Rank: 10
等 级:贵宾
威 望:67
帖 子:12442
专家分:0
注 册:2004-7-22
收藏
得分:0 
javascript里面, td的事件里面, onMouseOver
2006-09-28 17:06
bingxue2332
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:446
专家分:0
注 册:2004-11-6
收藏
得分:0 
[CODE]

<table border="1" width="300px">
<tr>

<td height="30" onmouseover="this.style.backgroundColor='#FF0000'"

onmouseout="this.style.backgroundColor=''" >
abc
</td>

</tr>
<tr>

<td height="30" onmouseover="this.style.backgroundColor='#FFFF00'"

onmouseout="this.style.backgroundColor=''">
abcd
</td>

</tr>
<tr>

<td height="30" onmouseover="this.style.backgroundColor='#FF00FF'"

onmouseout="this.style.backgroundColor=''">
abcde
</td>

</tr>

</table>

[/CODE]

2006-09-28 20:29
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
谢谢大家的帮忙

http://www./
2006-09-29 09:53
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 

还想再问一下,再前面的甚而上
如何让用户选择左边的筛选框后让其又变另一色?我加了个onclick 不行,晕~~~
谢谢大家先!


http://www./
2006-09-29 10:05
honkerman
Rank: 2
等 级:新手上路
威 望:4
帖 子:3078
专家分:0
注 册:2006-8-25
收藏
得分:0 

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<table border="1" width="135" >
<tr><td width="125" height="30" onmouseover="this.style.backgroundColor='#FF0000'" onmouseout="this.style.backgroundColor=''" >
<a href="http://baidu.com" target="_blank" style="color:" onclick="this.style.backgroundColor='#FF0000'" >abc</a></td>
</tr>
<tr><td height="30" onmouseover="this.style.backgroundColor='#FFFF00'" onmouseout="this.style.backgroundColor=''">
<a href="http://baidu.com" target="_blank" style="color:" onclick="this.style.backgroundColor='#FF0000'">abcd</a></td>
</tr>
<tr><td height="30" onmouseover="this.style.backgroundColor='#FF00FF'" onmouseout="this.style.backgroundColor=''">
<a href="http://baidu.com" target="_blank" style="color:" onclick="this.style.backgroundColor='#FF0000'" >abcde </a></td>
</tr></table>
</body>
</html>
这样的?

[此贴子已经被作者于2006-10-7 0:16:29编辑过]


" target="_blank">God Bless You[GLOW=255,#00ff00,2]My Friends![/GLOW]
2006-10-07 00:14
hangxj
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2045
专家分:0
注 册:2006-4-10
收藏
得分:0 
这个在上面就有人给出了,不过还是谢谢.

我现在想要的是我在这个基础之上,加上一个复选框
如何让用户选择左边的复选框后让其又变另一色?我加了个onclick 不行,晕~~~
谢谢大家先!

就是说要完全按照网易邮箱的一样.

http://www./
2006-10-12 09:20
javaxingxing
Rank: 2
等 级:论坛游民
帖 子:78
专家分:82
注 册:2009-11-6
收藏
得分:0 
顶贴  谢谢帮我解决问题了
2010-03-27 10:50
快速回复:[求助]如何实现如同163邮箱中的,当鼠标放上去的时候该行变色?
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.015789 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved