Learn how to use jQuery at the Blog

Tweetdeck « visit

  • Added 8 months ago
  • 29 Lines of Code shown
  • 1 Links of Interest
http://tweetdeck.com/beta
This is my Source Code and I don't want to show it here
View Source Code only (as overlay)
// That code snippet belongs to Tweetdeck - http://tweetdeck.com/beta

$(document).ready(function () {
	$("#col-r a.highlight").bind("click", function(e){
		e.preventDefault();
		$("#col-r").css('backgroundPosition', '0 0');
		$("#col-r div:visible").fadeOut("normal", function() {
			$("#col-r a.highlight strong").text("What’s new?");
		});
		$("#col-r div.new:hidden").fadeIn("normal", function() {
			$("#col-r a.highlight strong").text("Hide new");
		});
	});
	
	$("area[href!='http://tweetdeck.posterous.com']").bind("click", function(e){
		var element = $(this).attr("href");
		e.preventDefault();
		$("#col-r div.new").hide();
		$("#col-r " + element).fadeIn("normal", function() {
			$("#col-r").css('backgroundPosition', '-9000px -9000px');
		});
	});
	
	$("#col-r div.feat a").bind("click", function(e){
		e.preventDefault();
		$("#col-r div.new").show();
		$("#col-r").css('backgroundPosition', '0 0');
		$("#col-r div.feat:visible").fadeOut("normal", function() {
		});
	});
});