From 98d52c7c03e78c98cf2daa9729824e8752f8cb2a Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:15:25 +0800 Subject: picture caption --- source/javascripts/caption.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 source/javascripts/caption.js (limited to 'source/javascripts') diff --git a/source/javascripts/caption.js b/source/javascripts/caption.js new file mode 100644 index 0000000..271c428 --- /dev/null +++ b/source/javascripts/caption.js @@ -0,0 +1,9 @@ +(function($){ + $('.entry img').each(function(){ + var alt = $(this).attr('alt'); + + if (alt != ''){ + $(this).after(''+alt+''); + } + }); +})(jQuery); \ No newline at end of file -- cgit v1.2.3