A lightbox plugin for jQuery
JavaScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
LICENSE.txt
README.md
jquery.lightbox.js

README.md

jquery.lightbox

A lightbox plugin for jQuery

Examples

Note: Popup's z-index should be set higher than all other element's z-index, otherwise those elements will not be covered by overlay curtain. Curtain's z-index is automatically set by js by deducting one from popup's z-index.

Options

  • modal: false (default), true

    If model is true, lightbox can not be closed by clicking popup or lightbox curtain. It can only closed by calling lightbox's public method close().

  • <li><strong>relative_to</strong>: 'window' (default), 'parent'</li>
    
    <li><strong>top</strong>: center (default), any integer value</li>
    <li><strong>left</strong>: center (default), any integer value</li>
    
    <li><strong>onClosed</strong>: callback function runs when lightbox is closed</li>
    
    <li><strong>hide_browser_scrollbar</strong>: false (default), true</li>
    
    <li><strong>has_curtain</strong>: true (default), false</li>
    <li><strong>curtain.color</strong>: '#000' (default), any color value in hexadecimal</li>
    <li><strong>curtain.opacity</strong>: 0.6 (default), any number between 0 and 1</li>