关于在同一个DIV下的Hover效果问题
2013-12-10 16:19
316 查看
例子:
(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');
}
});
});
}());
(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');
}
});
});
}());
相关文章推荐
- 关于jqplot同一个div重用,导致数据重复问题
- 一个关于里层div在外层div里居中的问题
- 问题:关于坛友的一个定时重复显示和隐藏div的实现
- 一个关于css中margin-right没有效果的问题
- 关于div中放入一个img元素导致div高度会多出几个像素的解决问题
- 问题:关于坛友的一个定时重复显示和隐藏div的实现
- 问题:关于坛友的一个js轮播效果的实现
- 3月题外:关于JS实现图片缩略图效果的一个小问题
- 3月题外:关于JS实现图片缩略图效果的一个小问题
- 问题:关于坛友的一个js轮播效果的实现
- 关于inline-block,间隙距离去除,以及div自动换行,高度等问题的一个demo
- 关于div中放入一个img元素导致div高度会多出3px像素的解决问题
- 关于Windows更新窗口内容的问题(作为一个实验,效果很明显)
- 3月题外:关于JS实现图片缩略图效果的一个小问题
- 一个关于css+div娱乐效果
- 一个关于css中margin-right没有效果的问题
- 今天遇到一个问题,听我细细道来一个div id=a 里面还有一个div id =b 问题是点击a会弹出a 那么点击b 会弹出b紧接着弹出a 我想实现的效果是点击b只弹出b
- 关于一个数组中两个数的和等于给定数的问题
- 2个div,hover处理,需要判断鼠标是否在一个div内
- 关于Repeater控件的一个问题