![]() |
Is this code wrong?
Sorry im bit new to js but when i move my mouse over this div very fast many times it will at some point hit a bug so the hover image stays, or the tag that should fade out stays as it is. Somebody know if there is kind of wrong details in this code? Because i want it to work like when we use image and then put image:hover at CSS they never get bugs.
Code:
$(function(){ |
.hover() is deprecated...
|
Quote:
|
Quote:
http://jquery.com/upgrade-guide/1.9/#hover-pseudo-event |
Im using 1.9.1 i think its the newest? So what should i change hover too :o
|
Ummm...did you *READ* the page that RndMe linked to?
Quote:
|
Quote:
|
Well, as it mentioned and as the documentation for
hover() says that function is/was a shortcut for mouseenter() and mouseleave(), so that’s what you should use instead.I still wonder why they didn’t mention the deprecation of hover() in the documentation. |
Quote:
Code:
$(function(){ |
Almost.
The basic syntax looks like this: Code:
$('#tag-hover').mouseenter(mouseInFunction).mouseleave(mouseOutFunction);Code:
$('#tag-hover')Code:
$('#tag-hover') |
Thanks i love you!
|
| All times are GMT +1. The time now is 06:13 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.