Skip to content

Instantly share code, notes, and snippets.

@taelor
Created February 26, 2009 04:15
Show Gist options
  • Select an option

  • Save taelor/70650 to your computer and use it in GitHub Desktop.

Select an option

Save taelor/70650 to your computer and use it in GitHub Desktop.
$(document).ready(function(){
var top_post = 1 ;
var bottom_post = 2 ;
var post_length = $(".side-post").length;
$("#timer_handle").everyTime(8000, function() {
next_post = (bottom_post % post_length)+1;
$("#"+top_post).queue(function () {
$(this).hide("slow");
$("#"+next_post).show("slow");
$(this).dequeue();
});
$("#"+top_post).queue(function () {
$("#recent-posts").append($(this))
$(this).dequeue();
});
top_post = bottom_post
bottom_post = next_post
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment