thanks, i'am using my own counter (x++) for now. i have a question to improve my moo-knowledge: how can i return the counter in your script? (that everyTime(function(counter) returns the counter-value) I'am using Element.implement({ everyTime : function(func,delay,times) { ...
On 2 Mrz., 16:42, אריה גלזר <arieh.gla...@gmail.com> wrote: > use pass: > > function a(a){ > console.log(a); > > } > > a.pass('a').everyTime(200,20); > > > > On Wed, Mar 2, 2011 at 4:18 PM, hamburger <bilidi...@web.de> wrote: > > thx Arieh, > > sometimes is is better to make a complete new code. > > but here i already have on to use ... > > i' am not sure how to get the i in .everyTime(function(i) i think it > > is not given. > > is there any way to get it > > > On 2 Mrz., 14:38, אריה גלזר <arieh.gla...@gmail.com> wrote: > > > 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-561http://www.arieh.co.ilhttp://www.link-wd.co.il > > -- > Arieh Glazer > אריה גלזר > 052-5348-561http://www.arieh.co.ilhttp://www.link-wd.co.il