make it:
(function($) {
$.fn.imgCaption = function() {
return this.each(function() {
var img = $('img', this);
$('<p>' + img.attr('title') + '</p>').css({width:
img.width() + 'px'}).appendTo(this);
});
};
})(jQuery);_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
