I haven't gotten it working yet, but I understand the concept, and its
brilliant!

Thank you very much!

On Jan 14, 11:28 pm, James Van Dyke <jame...@gmail.com> wrote:
> $(function() {
>     var i, numStickies = 9;
>     for (i = 1; i <= numStickies; i += 1) {
>         setTimeout( function() {
>             $(".sticky" + i + ":hidden").fadeIn(500);
>         }, 100 * i);
>     }
>
> });
>
> Not sure if that's faster, but it's shorter and easier to change.
>
> On Jan 14, 11:19 pm, DJCarbon43 <djcarbo...@gmail.com> wrote:
>
>
>
> > Being a bit of a newfie, I was wondering how this function could be
> > condensed:
>
> > $(document).ready =
> >         setTimeout(function(){ $(".sticky1:hidden").fadeIn(500); }, 100);
> >         setTimeout(function(){ $(".sticky2:hidden").fadeIn(500); }, 200);
> >         setTimeout(function(){ $(".sticky3:hidden").fadeIn(500); }, 300);
> >         setTimeout(function(){ $(".sticky4:hidden").fadeIn(500); }, 400);
> >         setTimeout(function(){ $(".sticky5:hidden").fadeIn(500); }, 500);
> >         setTimeout(function(){ $(".sticky6:hidden").fadeIn(500); }, 600);
> >         setTimeout(function(){ $(".sticky7:hidden").fadeIn(500); }, 700);
> >         setTimeout(function(){ $(".sticky8:hidden").fadeIn(500); }, 800);
> >         setTimeout(function(){ $(".sticky9:hidden").fadeIn(500); }, 900);
>
> > Is it possible, or is that as clean as can be? fadein time is the same
> > accross all sticky classes, but the timeout must be different for each.

Reply via email to