我一直有一些困难,有人可以指出我在这个小提琴的正确方向吗?如何使悬停监听器可选
我需要该div在悬停时进行动画制作,但只有当.isDown
类已通过点击功能添加到其他元素时。
$(".move").click(function(event){
event.preventDefault();
if ($(this).hasClass("isDown")) {
$(this).stop().animate({opacity:"0.5"}, 270);
$(this).removeClass("isDown");
//can put hover in here????
} else {
$(this).stop().animate({opacity:"1"}, 300);
$(this).addClass("isDown");
}
return false;
});
if ($(".move").hasClass("isDown")){
$(".fuckerMOVE").hover(
function() {
$(this).stop().animate({top:"10px"},215);
},
function() {
$(this).stop().animate({top:"0px"},230);
});
}
以及使用1.10.2唯一原因我想使用最新版本,我用10.1小提琴,因为我看到很多小提琴的我的网站,即时通讯使用版本7和很多东西不工作从7到10.1 ....使用10.1在你看来不好? – mike