You could wrap the whole thing in a timeout, sort of like this:
- .hover(
- function() {
- var timeout = setTimeout(function(){
- // do stuff on hover
- }, 2000);
- },
- function(){
- clearTimeout(timeout);
- // do stuff when hover off
- }
- );
I think there is a plugin that does a lot of hover functionality too, I've not used it though so I dont know what it is.
Dave