The original post probably now falls outside the search timeframe.
Here's a condensed version.
Tested with Facebox 1.2, jQuery 1.2.6, IE6/7, Firefox 3, Safari 3.2.1.
Add the attribute rel="facebox-cap" to anchors containing the images
you want to caption, and put the caption text in the title attribute.
e.g.
<a href="image.jpg" rel="facebox-cap" title="Caption text">Link text
or image element</a>
Attach Facebox in the page with:
<script type="text/javascript">
$(document).ready(function() {
$('a[rel*=facebox]').facebox();
$('a[rel*=facebox-cap]').mousedown(function() {
var caption = $(this).attr('title');
$().one('reveal.facebox', function() {
$('<p class="caption">' + caption + '</p>').appendTo
('.content');
});
});
});
</script>
The CSS selector for styling the caption:
#facebox p.caption
Hope this helps.