Dave Methvin showed someone else another way to do this back in December. Here is a slightly modified version of his approach:

$(document).ready(function() {
  var $divs = $('div').hide(),
        div = 0;
  (function(){
      $divs.eq(div++).show('slow', arguments.callee);
  })();
});


--Karl

____________
Karl Swedberg
www.englishrules.com
www.learningjquery.com




On Mar 16, 2009, at 10:23 PM, Tom Shafer wrote:


im getting too much recursion in firebug, any thought?

On Mar 16, 7:26 pm, ricardobeat <ricardob...@gmail.com> wrote:
jQuery.fn.showLoop = function(i){
  var i = i || 0,
    self = this;
  $( this[i] ).show(600, function(){
       self.showLoop(++i);
  });

};

$('.type').showLoop();

On Mar 16, 7:27 pm, Tom  Shafer <tom.sha...@gmail.com> wrote:

how can i loop through each div on a page and have them appear one by
one
i am trying

var arrayList2 = $.makeArray(document.getElementsByClassName
(".type"));

$.each(arrayList2,function() { $ (this).show();
                                                });

thanks

-tj

Reply via email to