[jQuery] Re: intro using fadeTo and setTimeout won't work

2008-12-23 Thread Dave Methvin
function changeFade(i) { $(#logo).fadeTo(fast,1-i/1); $(#percentage).html(i/100 + '%'); i += 100; if (i=1) setTimeout(changeFade(i),100); } $(document).ready(function(){ alert('test'); $(#logo).css('opacity','0.01'); changeFade(100); } You need to wait

[jQuery] Re: intro using fadeTo and setTimeout won't work

2008-12-23 Thread Althalos
It works like a charm! Thanks a lot! =) On 23 Dec, 16:24, Dave Methvin dave.meth...@gmail.com wrote: function changeFade(i) {   $(#logo).fadeTo(fast,1-i/1);   $(#percentage).html(i/100 + '%');   i += 100;   if (i=1)     setTimeout(changeFade(i),100); }