> hideDelayTimer = setTimeout(function () { > $(this).animate({backgroundPosition: '(0 0)'}); > hideDelayTimer = null; > }, hideDelay);
$(this) might not refer to anything in this context. setTimeout works in the global scope, so the reference to the object you want animated is lost. -- Andrei Eftimie http://eftimie.com +40 758 833 281 Punct http://designpunct.ro