- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
“DarkBox” Lightbox
November 15, 2010
This is a Lightbox Script. So-Called ‘Lightbox’, is a script used to display large images using modal dialogs, that gained widespread popularity due to its simple yet elegant style and easy implementation.
JavaScript
In order to make the script work, the index-#.html file with a slider should contain these lines of HTML code:
The script.js file contains these lines of code that initialize the script functionality with basic values.
HTML
Below you can see the HTML script representation:
The src parameter of the tag defines the path to the image that is output in the darkbox.
CSS
You can find script related stylesheet in the main style.css file. You will need to modify the following styles: