Notice how tall this thing is for about ten links. I suppose it would like nice with longer titles, but really, it feels like it can get much more compact, and I don't know if this that important for users to be able to scan all the titles. I hate lists that are too long, and I assume others are the same. On the other hand, I think this is a perfectly good view for those who aren't using javascript so I don't want to mess the formatting up for them.
$.fn.extend({
tabbify: function() {
return this.each( function(){
# The
tags in Drupal's output mess up formatting, so
# these get removed outright
$(this).find('br').each( function() {
$(this).remove();
})
# In order for these to appear as tabs, we have to add a CSS class
$(this).addClass("tabbed-panes");
# We get a list of h3 tags from the block as these are going to
# act as our tab titles
var headers = $(this).find('h3');
var hcount = headers.length;
var init = 1;
var pid = $(this).parent().attr("id");
var tabid = pid +'-tabs';
var tablist = '
$(document).ready( function() {
$("#block-statistics-0 .content").tabbify();
});
Here's a demo of the difference : Toggle the block like you mean it!
It's not a real plug in as this was written pretty specifically for this particular task, but I assume it can be generalised into a block tabbing plugin if it really needed to be.
The tabs are pretty basically styled (in this case with horrible colors, but I didn't want to spend too much time styling a demo) with this css file. I have no idea how this looks in IE6, but I really don't care. People who use it deserve the experience they get.