In your html file, change
Code:
<script type="text/javascript">
$('img.captify').jcaption({
wrapperElement: 'span',
wrapperClass: 'caption',
captionElement: 'span',
imageAttr: 'alt',
requireText: true,
copyStyle: false,
removeStyle: true,
removeAlign: true,
copyAlignmentToClass: false,
copyFloatToClass: true,
autoWidth: true,
animate: true,
show: {opacity: 'show'},
showDuration: 400,
hide: {opacity: 'hide'},
hideDuration: 400
});
</script>
In custom.css
Code:
/* :..[ Image Captions ]..: */
span.caption { margin: 0; padding: 0; position: relative; }
span.caption span { position: absolute; margin: 0; padding: 10px 0 10px 10px; font-size: 22px; bottom: 0; left: 0; background: #fff; color: #111; opacity: .75; filter: alpha(opacity=75); width: 99%; cursor:pointer;}
span.caption img { margin: 0; padding: 0; }
and replace your jcaption.js with the attached one (rename .txt to .js)
Edit:
Basically, your jcaption script makes your markup invalid, since you can't nest a block level element like <div> or <p> inside an inline element like <a>. I've changed all "caption elements" to span and changed css and js accordingly.
Good luck!