****真実は、これらのソリューションはすべて機能しますが、プロジェクトでは機能しないため、少し異なる方法で質問を再提出します****
基本的に私は画像を持っています。誰かがその上にマウスカーソルを移動すると、div(画像が含まれています-別名再生ボタン)が表示されます。画像の外側にカーソルを移動すると、再生ボタンが消えます。
それは機能しますが、再生ボタンの上に呪いを動かすと、狂ったようにフリックするので、どういうわけか私のイベントを混乱させる必要があります。
助けてくれてありがとう...
HTML
<div id="cont">
<div id="art" style= "position: absolute; left: 20px; top: 40px;">
<a href="#"><img src="http://www.newmusicproducer.com/img/ic_play.png"></a>
</div>
<img src="https://i1.sndcdn.com/avatars-000008744854-5sr588-large.jpg?d408275" alt="smile" id="imgSmile"></img>
jQuery
$(document).ready(function() {
$('#art').hide();
$('#imgSmile').mouseenter(function() {
$('#art').show();
});
$('#imgSmile').mouseleave(function() {
$('#art').hide();
});
});