A lightbox plugin for jQuery
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.
-
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>