Jquery 两个鼠标指针功能同时运行?(设置颜色动画并播放声音)
我一直在使用克隆的音频脚本在mouseenter上播放音频Jquery 两个鼠标指针功能同时运行?(设置颜色动画并播放声音),jquery,audio,jquery-animate,mouseenter,Jquery,Audio,Jquery Animate,Mouseenter,我一直在使用克隆的音频脚本在mouseenter上播放音频 $(".wrapper") .each(function(i) { if (i != 0) { $("#beep-two") .clone() .attr("id", "beep-two" + i) .appendTo($(this).parent()); } $(this).data("beeper", i); }) .mousee
$(".wrapper")
.each(function(i) {
if (i != 0) {
$("#beep-two")
.clone()
.attr("id", "beep-two" + i)
.appendTo($(this).parent());
}
$(this).data("beeper", i);
})
.mouseenter(function() {
$("#beep-two" + $(this).data("beeper"))[0].play();
});
$("#beep-two").attr("id", "beep-two0");
我还用彩色动画实现了mouseenter函数。我的密码在上面
我可以让颜色和声音独立工作。但当我马上使用它们时,两者都不起作用
如何使彩色动画和声音都在鼠标上播放我代码中的每个单词?你能用包含音频的确切代码更新小提琴吗?谢谢!对于这两种代码:当我这样做时,似乎没有任何功能。我对jQuery非常陌生,所以我可能犯了一个很大的错误。