User:Suppa chuppa/olddiff.js

(function($) {	$.fn.linkNotify = function (notification) {		notification = notification || 'Loading&hellip;';		this.not('[href^="#"]').each(function { $(this).click(function {				$(this).html(notification);			}); });		return this;	}; })(jQuery);

$(function { // on jQuery's DOM load event $('a').linkNotify; // display "Loading..." when any link is clicked $('#content a').linkNotify('Loading your next page'); // display 'Loading your next page' on all links in the #content div });