Great stuff, Klaus!
The more I learn about jQuery, the more I wish I'd discovered it before!
Seb
On 14 Feb 2007, at 14:06, Klaus Hartl wrote:
>
> 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/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/