永夜 Blog

jquery下mouseenter的预期效果! 0

The solution to mouseEnter and mouseleave still flashing in IE6 under jQuery!

Post Views: 6 HTML code: <section> <ul> <li> <a href=”#”><img src=”http://www.lassaquarium.com/tpl/lassaquarium/images/product/product-category/1.jpg”width=”230″ height=”170″ alt=”starfish aquarium”></a> <a href=”#”>Starfish Aquarium</a> </li> <li> <a href=”#”><img src=”http://www.lassaquarium.com/tpl/lassaquarium/images/product/product-category/2.jpg” width=”150″ height=”170″ alt=”filter”></a> <a href=”#”>Filtering device</a> </li> <li> <a href=”#”><img src=”http://www.lassaquarium.com/tpl/lassaquarium/images/product/product-category/3.jpg” width=”150″...

0

Use jQuery under IE6 and 7. If it is the mouseover and mouseout event, there will be a problem of flickering to solve!

Post Views: 5 /* Header: My joy */ $(“.my-leshi”).mouseover(function(){ $(“.my-leshi”).addClass(“my-leshi-hover”); }).mouseout(function(){ $(“.my-leshi”).removeClass(“my-leshi-hover”); });   /* Header: My joy */ $(“.my-leshi”).MouseEnter(function(){ $(“.my-leshi”).addClass(“my-leshi-hover”); }).mouseLeave(function(){ $(“.my-leshi”).removeClass(“my-leshi-hover”); }); When the mouse is moved to the shopping cart, the...