例子:

(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');
}
});
});
}());

最新文章

  1. C#反序列化XML异常:在 XML文档(0, 0)中有一个错误“缺少根元素”
  2. 第15章 .NET中的反射
  3. SQL Server日期时间格式转换字符串
  4. jQuery调用WebService实现增删改查的实现
  5. (转)Aspone.Cells设置Cell数据格式 Setting Display Formats of Numbers and Dates
  6. 新蒂下午茶体基本版SentyTEA-Basic
  7. Labview实现脉波调制( PDM )
  8. JQuery表单验证插件EasyValidator,超级简单易用!
  9. PHP漏洞全解(四)-xss跨站脚本攻击
  10. ExecuteNonQuary接收存储过程的输出类型的变量的值
  11. css-文字
  12. 不用不知道 apply()与call()的强大
  13. 桦仔 笔记7-徐 SQLSERVER日志记录机制
  14. Struts2的类型转换(下)
  15. 更新jar包里的配置文件
  16. JavaSE教程-02Java基本语法
  17. 制作Windows服务项目详细攻略
  18. [LaTeX] box algorithm adjustbox subfigures, textwidth
  19. 80端口被NT kernel & System 占用
  20. advertisingIdentifier

热门文章

  1. eclipse+Maven插件报错:-Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match.
  2. Java Class文件格式详解
  3. Django(博客系统):重写了auth.User后使用createsupperuser出错解决办法
  4. 个人网站建设(适合Java初学者)(一)
  5. Hadoop学习笔记(七):初识spark
  6. python 元组(tuple)的使用方法介绍
  7. java--- 使用interrupte中断线程的真正用途
  8. [LeetCode] Minimum Time Difference 最短时间差
  9. ios开发-将false和true,当做字典的值,并将字典转成字符串,上传到服务器
  10. 使用vba做一个正则表达式提取文本工具