Well, the pattern is a little different - i've done el.evertTime(function,delay,time)
but you can change it if you like - look for it in the code. btw - on what account does the need occurs for calling a function via an element? Why not simply do func.everyTime(200,20)// 20 times, 200 milisecs apart ? On Wed, Mar 2, 2011 at 2:03 PM, hamburger <bilidi...@web.de> wrote: > thats great Arieh thank you very much. > > but on this code i get an error: func is not a function finc() > > $('number' + b).everyTime(30, function (i) { > var a = (d - (i * 94)); > $(this).setStyle('background-position', '0 ' + a + > 'px') > }, (original_price_a[b - 1] - actual_price_a[b - 1]) * 7) > > On 2 Mrz., 09:17, אריה גלזר <arieh.gla...@gmail.com> wrote: > > Nice concept > > Here you go:http://jsfiddle.net/ariehg/gpnuA/7/ > > > > I've only implemented everyTime and stopTime > > > > it will work on both on elements and functions > > > > On Tue, Mar 1, 2011 at 6:12 PM, Ryan Florence <rpflore...@gmail.com> > wrote: > > > On Mar 1, 2011, at 8:33 AM, hamburger wrote: > > > > > > i do not have any clue from jquery > > > > > Well, it "is designed to change the way that you write JavaScript." ( > > >http://jquery.com) so you're not the first. > > > > >http://mootools.net/docs/core/Types/Function#Function:periodical > > > > >http://mootools.net/docs/core/Types/Function#Function:delay > > > > > Not exactly the same thing as everyTime (from what I can tell from the > > > jQuery plugins page. > > > > -- > > Arieh Glazer > > אריה גלזר > > 052-5348-561http://www.arieh.co.ilhttp://www.link-wd.co.il -- Arieh Glazer אריה גלזר 052-5348-561 http://www.arieh.co.il http://www.link-wd.co.il