[jQuery] Re: Settimeout on Function

2009-08-31 Thread KeeganWatkins
So, it's just a simple issue with scope. Try this instead (which was working when applied via FireBug to your demo page: $(document).ready(function(){ $(#barcode span).hover( function () { $(this).addClass(barover); }, function () { // Store span

[jQuery] Re: Settimeout on Function

2009-08-31 Thread a1anm
excellent. thanks very much. On Aug 31, 8:24 am, KeeganWatkins mkeeganwatk...@gmail.com wrote: So, it's just a simple issue with scope. Try this instead (which was working when applied via FireBug to your demo page: $(document).ready(function(){     $(#barcode span).hover(       function

[jQuery] Re: Settimeout on Function

2009-08-30 Thread KeeganWatkins
The basic syntax for delaying a function using setTimeout is this: setTimeout(function() { // ...code here executes when the timeout is complete }, 2000 /* Length of timeout, in milliseconds */); so for your example, something like this should work: $(document).ready(function(){

[jQuery] Re: Settimeout on Function

2009-08-30 Thread a1anm
Hi, I tried this but it didn't work. It resulted in the class not being removed at all. You can see here: http://www.toomanydesigns.com/test/noflash/ On Aug 30, 11:20 am, KeeganWatkins mkeeganwatk...@gmail.com wrote: The basic syntax for delaying a function using setTimeout is this: