Mission: To make a counter.

The number of times I love jQuery is:


var count = 100; $(document).ready(function(){ $('#counter').append("<span>" + count + "</span><span>" + count + "</span>"); $('#counter').cycle({ fx: 'scrollDown', speed: 300, timeout: 3000, after: onSlide }); }); function onSlide() { count++; $(this).siblings("span").empty().text(count); }