Lightbox Class
Create a lightbox.
Constructor
Lightbox
(
-
}
-
options.window The
Parameters:
-
}
Options=options
-
options.window The
Stringwindow object
Item Index
Methods
getContentElement
()
DOM Element
Get the content iframe element.
Returns:
DOM Element:
getContentWindow
()
DOM Element
Get the content window in the iframe.
Returns:
DOM Element:
isLoaded
()
Boolean
Check if the lightbox is loaded
Returns:
Boolean:
load
(
-
src URL
-
}
-
[options.zIndex]
-
[options.background]
Load content into the lightbox
Parameters:
-
src URL
Stringto load.
-
}
Options=options
-
[options.zIndex]
Number optionalz-index to set on the background.
-
[options.background]
String optionalLightbox background CSS.
unload
()
Unload the lightbox