[Proto-Scripty] Re: Reuse 'Effect' code for looping

2009-08-17 Thread Benj
Thanks Matt. Not the answer I was expecting but completely functional - it works nicely =) On Aug 14, 5:48 pm, Matt Foster mattfoste...@gmail.com wrote: http://prototypejs.org/api/function/delay        var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];         var delayConstant = 1;        

[Proto-Scripty] Re: Reuse 'Effect' code for looping

2009-08-14 Thread Matt Foster
http://prototypejs.org/api/function/delay var arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]; var delayConstant = 1; arr.each(function(value, index){ (function(val){ $(myInput).value = val; }).delay(delayConstant * index,