Colorbox extra caption
HTML
<script src="https://rawgithub.com/jackmoore/colorbox/master/jquery.colorbox-min.js"></script>
<p>
<a href="https://github.com/jackmoore/colorbox/raw/master/content/ohoopee1.jpg" rel="example1" title="Me and my grandfather on the Ohoopee.">Grouped Photo 1</a>
</p>
<p>
<a href="https://github.com/jackmoore/colorbox/raw/master/content/ohoopee2.jpg" rel="example1" title="On the Ohoopee as a child">Grouped Photo 2</a>
</p>
<p>
<a href="https://github.com/jackmoore/colorbox/raw/master/content/ohoopee3.jpg" rel="example1" title="On the Ohoopee as an adult">Grouped Photo 3</a>
</p>
CSS
#cboxLoadedContent { position: relative; }
#extra-info {
position: absolute;
float:right;
bottom: 0;
left: 0;
right: 0;
background: #000;
color: #fff;
opacity: 0.8;
filter: alpha(opacity=80);
padding: 10px;
}
/*
ColorBox Core Style:
The following CSS is consistent between example themes and should not be altered.
*/
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
#cboxOverlay{position:fixed; width:100%; height:100%;}
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
#cboxContent{position:relative;}
#cboxLoadedContent{overflow:auto;}
#cboxTitle{margin:0;}
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
.cboxPhoto{float:left; margin:auto; border:0; display:block;}
.cboxIframe{width:100%; height:100%; display:block; border:0;}
/*
User Style:
Change the following styles to modify the appearance of ColorBox. They are
ordered & tabbed in a way that represents the nesting of the generated HTML.
*/
#cboxOverlay{background:url(https://raw.github.com/jackmoore/colorbox/master/example1/images/overlay.png) repeat 0 0;}
#colorbox{}
#cboxTopLeft{width:21px; height:21px; background:url(https://raw.github.com/jackmoore/colorbox/master/example1/images/controls.png) no-repeat -100px 0;}
#cboxTopRight{width:21px; height:21px; background:url(https://raw.github.com/jackmoore/colorbox/master/example1/images/controls.png) no-repeat -129px 0;}
#cboxBottomLeft{width:21px; height:21px; background:url(https://raw.github.com/jackmoore/colorbox/master/example1/images/controls.png) no-repeat -100px -29px;}
#cboxBottomRight{width:21px; height:21px; background:url(https://raw.github.com/jackmoore/colorbox/master/example1/images/controls.png) no-repeat -129px -29px;}
#cboxMiddleLeft{width:21px;...
JavaScript
$("a[rel='example1']").colorbox();
$(document).bind('cbox_complete', function(){
var extra = $.colorbox.element().text();
$('#cboxLoadedContent').append('<div id="extra-info">' + extra + '</div>');
});