[jQuery] what's the best way to write this small function

[jQuery] what's the best way to write this small function


hi,
I am trying to write a very simple function but its not working...here
is my function
jQuery.fn.customLoad = function(url){
    return $(this).ajaxStart(function(){
                $(this).html("<div align=\"center\"><img src=\"/cake2/img/images/
loadingAnimation.gif\" /></div>");
                $(this).load(url);
            });
};
As you can see, I am just trying over write load function so that
whenever any div is being loaded, just attach a new div that display
loading animation.
I am sure why its not working...any help will be appreciated
Regards,
bingo