【发布时间】:2013-01-03 19:34:09
【问题描述】:
我想显示几个blocks(divs) 并让它们都以相同的方式与同一个对象交互。
模拟错误的步骤
-
Rollover第一个块会触发动画,它会打开对象。 - 那么如果你
Rollover第二个块我想保持对象打开,但结果是对象第一个关闭然后再次打开。
目标
在我翻转积木时保持对象打开
为后代添加了原始代码:
$('.object').css({ "top": '-180px' });
$(".cont1,.cont2").hoverIntent(mousein_triger , mouseout_triger);
function mousein_triger(){
$('.object').stop().animate({"top": "0px"}, 300);
}
function mouseout_triger() {
$('.object').stop().animate({"top": "-180px"}, 1000);
}
【问题讨论】:
标签: jquery hover mouseover hoverintent