Parent Directory
|
Revision Log
|
Revision Graph
Drupal 6.x update
| 1 | /*$Id$*/ |
| 2 | $(document).ready(function(){ |
| 3 | $("img.caption").each(function(i) { |
| 4 | var imgwidth = $(this).width(); |
| 5 | var imgheight = $(this).height(); |
| 6 | var captiontext = $(this).attr('title'); |
| 7 | var alignment = $(this).attr('align'); |
| 8 | $(this).attr({align:""}); |
| 9 | $(this).wrap("<div class=\"image-caption-container\" style=\"float:" + alignment + "\"></div>"); |
| 10 | $(this).parent().width(imgwidth); |
| 11 | $(this).parent().append("<div class=\"image-caption\">" + captiontext + "</div>"); |
| 12 | }); |
| 13 | }); |
| ViewVC Help | |
| Powered by ViewVC 1.1.2 |