Chinaunix首页 | 论坛 | 博客
  • 博客访问: 927832
  • 博文数量: 210
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 2070
  • 用 户 组: 普通用户
  • 注册时间: 2014-11-19 21:54
文章分类

全部博文(210)

文章存档

2020年(2)

2019年(18)

2018年(27)

2017年(5)

2016年(53)

2015年(88)

2014年(17)

分类: 其他平台

2015-12-05 16:44:22

$(
function(){
//页面dom加载完成之后执行的方法
//让表格隔行变颜色
$("#articleList").find("tr:even").css(
{
"background": "#eeeeee"
}
);

//鼠标放上,隔行变颜色
var bgColor;
$("tr").mouseover(
        function(){
                        bgColor = this.style.backgroundColor;  // 取背景颜色
                        $(this).css({
                                            "background":"#ff9900"
                                        });
                      }
 );
$("tr").mouseout(
                            function(){
                                                $(this).css({
                                                                       "background":bgColor
                                                        });
                                            }
                        ); 
//去掉光帽的效果
$("#pageURLTr").unbind("mouserover");
$("#pagesURLTr").unbind("mouseout");


阅读(1608) | 评论(0) | 转发(0) |
0

上一篇:C#阅读器

下一篇:Java中this && super的使用

给主人留下些什么吧!~~