Bootstrap - Lightbox
=================
This is a plugin for Twitter Bootstrap that adds a lightbox that is based off the modal dialog
Once you have the files include the CSS and JavaScript files in your page and then give the example code below a shot.

This is a plugin for Twitter Bootstrap that adds a lightbox that is based off the modal dialog
Quick start
You have several options. You can clone the repositorygit clone git://github.com/jbutz/bootstrap-lightbox.git
, grab an archive, or use cdnjs.Once you have the files include the CSS and JavaScript files in your page and then give the example code below a shot.
Example
<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
<div id="demoLightbox" class="lightbox hide fade" tabindex="-1" role="dialog" aria-hidden="true">
<div class='lightbox-header'>
<button type="button" class="close" data-dismiss="lightbox" aria-hidden="true">×</button>
</div>
<div class='lightbox-content'>
<img src="image.png">
</div>
</div>
Usage
Via data attributes ###
All you need to do is adddata-toggle="lightbox"
and href="#lightbox"
or data-target="#lightbox"
to a link, and set the href
so it references the lightbox you want to display.
<a data-toggle="lightbox" href="#demoLightbox">Open Lightbox</a>
Via JavaScript ###
Open the lightbox with the idmyLightbox
.
$('#myLightbox').lightbox(options)