Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 26th, 2012  |  syntax: None  |  size: 0.43 KB  |  hits: 14  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Jquery hover function cursor hover where it shouldn't
  2. // bind hover on the anchor element
  3. $("#nav-shadow li a").hover(function() {
  4.     var e = this;
  5.     // remove the .find('a') as 'e' is the anchor
  6.     $(e).stop().animate({
  7.         ...
  8.     }, 250, function() {
  9.         ...
  10.     });
  11.     // use .sibling() instead of .find('img')
  12.     $(e).siblings("img.width320").stop().animate({
  13.         ...
  14.     }, 250);
  15. }, function() {
  16.         ...
  17. });​