Mission: To make a counter.
The number of times I love jQuery is:
var count = 100; $(document).ready(function(){ $('#counter').append("
" + count + "
" + count + "
"); $('#counter').cycle({ fx: 'scrollDown', speed: 300, timeout: 3000, after: onSlide }); }); function onSlide() { count++; $(this).siblings("span").empty().text(count); }