javascript - Close hover div in IE 11 -
when hover 1 div code executed,and bizdetails show,
now want when mouse out in bizdetails div it's close
my code is
$("div.bizdetails").css("left", -$("div.images").width() / 2).fadein('slow', function () { $("body").mousemove(function (e) { if (!$(e.target).parent().hasclass("bizdetails") && !$(e.target).hasclass("bizdetails")) { $("div.bizdetails").fadeout(); } }) })
this code work fine in chrome , firefox
but in ie work in first use,and in secound when hover div , bizdetails show , close,
bizdetails html
<div class="bizdetails" style="left: -71.5px; display: block;"> <img src="../static/css/images/img1.png"> <h2>graphic</h2> <p>decription</p> <span>texttexttexttexttexttextex</span> </div>
please me
Comments
Post a Comment