关于在同一个DIV下的Hover效果问题
例子:
(function bindColumnRowHoverEvent(){
$('.ticket_list_body .work_product').live('mouseenter', function(e){
e.stopPropagation();
$(this).hover(function() {
if ($(this).find('.row_hover').length == 0){
$(this).addClass('row_hover');
}
},
function() {
$(this).removeClass('row_hover');
});
});
$('.ticket_list_body .task').live('mouseenter', function(e){
e.stopPropagation();
$(this).hover(function() {
$(this).closest('.work_product').removeClass('row_hover');
$(this).addClass('row_hover');
},
function() {
$(this).removeClass('row_hover');
if($(this).closest('.work_product').data('events').mouseenter){
$(this).closest('.work_product').addClass('row_hover');
}
});
});
}());
最新文章
- C#反序列化XML异常:在 XML文档(0, 0)中有一个错误“缺少根元素”
- 第15章 .NET中的反射
- SQL Server日期时间格式转换字符串
- jQuery调用WebService实现增删改查的实现
- (转)Aspone.Cells设置Cell数据格式 Setting Display Formats of Numbers and Dates
- 新蒂下午茶体基本版SentyTEA-Basic
- Labview实现脉波调制( PDM )
- JQuery表单验证插件EasyValidator,超级简单易用!
- PHP漏洞全解(四)-xss跨站脚本攻击
- ExecuteNonQuary接收存储过程的输出类型的变量的值
- css-文字
- 不用不知道 apply()与call()的强大
- 桦仔 笔记7-徐 SQLSERVER日志记录机制
- Struts2的类型转换(下)
- 更新jar包里的配置文件
- JavaSE教程-02Java基本语法
- 制作Windows服务项目详细攻略
- [LaTeX] box algorithm adjustbox subfigures, textwidth
- 80端口被NT kernel &; System 占用
- advertisingIdentifier
热门文章
- eclipse+Maven插件报错:-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
- Java Class文件格式详解
- Django(博客系统):重写了auth.User后使用createsupperuser出错解决办法
- 个人网站建设(适合Java初学者)(一)
- Hadoop学习笔记(七):初识spark
- python 元组(tuple)的使用方法介绍
- java--- 使用interrupte中断线程的真正用途
- [LeetCode] Minimum Time Difference 最短时间差
- ios开发-将false和true,当做字典的值,并将字典转成字符串,上传到服务器
- 使用vba做一个正则表达式提取文本工具