| version 1.1, 2010/10/08 09:12:24 |
version 1.2, 2010/12/10 12:53:20 |
|
|
| $.fn.lightBox = function(settings) { |
$.fn.lightBox = function(settings) { |
| // Settings to configure the jQuery lightBox plugin how you like |
// Settings to configure the jQuery lightBox plugin how you like |
| var directory_of_image = 'libpub/lightbox/'; |
var directory_of_image = 'libpub/lightbox/'; |
| |
var lang = 'en'; |
| |
if (ezin_lang.length > 0) { // ezin_lang je globalna premenna |
| |
lang = ezin_lang; |
| |
} |
| settings = jQuery.extend({ |
settings = jQuery.extend({ |
| // Configuration related to overlay |
// Configuration related to overlay |
| overlayBgColor: '#000', // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color. |
overlayBgColor: '#000', // (string) Background color to overlay; inform a hexadecimal value like: #RRGGBB. Where RR, GG, and BB are the hexadecimal values for the red, green, and blue values of the color. |
|
|
| // Configuration related to navigation |
// Configuration related to navigation |
| fixedNavigation: false, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface. |
fixedNavigation: false, // (boolean) Boolean that informs if the navigation (next and prev button) will be fixed or not in the interface. |
| // Configuration related to images |
// Configuration related to images |
| imageLoading: directory_of_image + 'lightbox-ico-loading.gif', // (string) Path and the name of the loading icon |
imageLoading: directory_of_image + 'lightbox-ico-loading-' + lang + '.gif', // (string) Path and the name of the loading icon |
| imageBtnPrev: directory_of_image + 'lightbox-btn-prev.gif', // (string) Path and the name of the prev button image |
imageBtnPrev: directory_of_image + 'lightbox-btn-prev-' + lang + '.gif', // (string) Path and the name of the prev button image |
| imageBtnNext: directory_of_image + 'lightbox-btn-next.gif', // (string) Path and the name of the next button image |
imageBtnNext: directory_of_image + 'lightbox-btn-next-' + lang + '.gif', // (string) Path and the name of the next button image |
| imageBtnClose: directory_of_image + 'lightbox-btn-close.gif', // (string) Path and the name of the close btn |
imageBtnClose: directory_of_image + 'lightbox-btn-close-' + lang + '.gif', // (string) Path and the name of the close btn |
| imageBlank: directory_of_image + 'lightbox-blank.gif', // (string) Path and the name of a blank image (one pixel) |
imageBlank: directory_of_image + 'lightbox-blank-' + lang + '.gif', // (string) Path and the name of a blank image (one pixel) |
| // Configuration related to container image box |
// Configuration related to container image box |
| containerBorderSize: 10, // (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value |
containerBorderSize: 10, // (integer) If you adjust the padding in the CSS for the container, #lightbox-container-image-box, you will need to update this value |
| containerResizeSpeed: 400, // (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default. |
containerResizeSpeed: 400, // (integer) Specify the resize duration of container image. These number are miliseconds. 400 is default. |