summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStella Power2007-10-04 14:43:51 (GMT)
committer Stella Power2007-10-04 14:43:51 (GMT)
commitfe0176d886d8ab14ba13eba19288771bad9752fa (patch)
tree6ed09117a5ea8572de3d289501ee586e06e188f3
parenta24a86bb0844820aebd97dd4319f1a2658d19979 (diff)
tidied up some variables
-rw-r--r--js/lightbox.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/lightbox.js b/js/lightbox.js
index 1ef9e7d..ac28902 100644
--- a/js/lightbox.js
+++ b/js/lightbox.js
@@ -3,10 +3,11 @@
* jQuery Lightbox
* @author
* Stella Power (snpower), <http://drupal.org/user/66894>
- * Warren Krewenki, <http://warren.mesozen.com>
*
* Based on Lightbox v2.03.3 by Lokesh Dhakar
* <http://www.huddletogether.com/projects/lightbox2/>
+ * Also partially based on the jQuery Lightbox by Warren Krewenki
+ * <http://warren.mesozen.com>
*
* Originally written to make use of the Prototype framework, and
* Script.acalo.us, now altered to use jQuery.
@@ -50,7 +51,8 @@
var Lightbox = {
overlayOpacity : 0.8, // controls transparency of shadow overlay
- resizeSpeed: 'normal', // controls the speed of the image resizing animations
+ fadeInSpeed: 'normal', // controls the speed of the image appearance
+ slideDownSpeed: 'slow', // controls the speed of the image resizing animations
borderSize : 18, // if you adjust the padding in the CSS, you will need to update this variable
imageArray : new Array,
activeImage : null,
@@ -415,7 +417,7 @@ var Lightbox = {
// Display image and begin preloading neighbors.
showImage: function() {
$('#loading').hide();
- $('#lightboxImage').fadeIn(Lightbox.resizeSpeed);
+ $('#lightboxImage').fadeIn(Lightbox.fadeInSpeed);
Lightbox.updateDetails();
this.preloadNeighborImages();
this.inprogress = false;
@@ -439,7 +441,7 @@ var Lightbox = {
$('#numberDisplay').html(numberDisplay).show();
}
- $("#imageDataContainer").hide().slideDown("slow");
+ $("#imageDataContainer").hide().slideDown(Lightbox.slideDownSpeed);
var arrayPageSize = Lightbox.getPageSize();
$('#overLay').css({height: arrayPageSize[1] + 'px'});
Lightbox.updateNav();