1) Inserted the captioning script from Boagworld (http://www.boagworld.com/technology/styled_images_with_caption/) along with the getelementsbyclassname function (http://www.robertnyman.com/2008/05/27/the-ultimate-getelementsbyclassname-anno-2008/) into {literal}{/literal} tags in the head of my template.
2) Added the CSS classes in the Boagworld article to my template's CSS file.
3) Added an image to my site, selected imgRight as the class and gave it a caption by filling in the title field.
Now the CSS styling is working correctly, but the Javascript is not - it's not generating the block of HTML like so:
Code: Select all
<div style="width: 200px;" class="imgRight">
<img src="/images/foo.jpg" alt="Description of picture" width="200" height="147" class="img" title="The caption would go here" />
<p>The caption would go here</p>
<span class="spareSpan"></span>
</div>