Changeset 188 for trunk/web-app/js


Ignore:
Timestamp:
Nov 19, 2009, 11:33:09 AM (15 years ago)
Author:
gav
Message:

Small change to loading javascript, preload image and increase pulses for IE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/web-app/js/lightbox.js

    r182 r188  
    7979
    8080  onload: function (event) {
     81
     82    // preload image.
     83    loadingImage = new Image();
     84    loadingImage.src =  Lightbox._imagePath + "loading.gif";
     85
    8186    var options = { 'minWidth' : 300};
    8287    return Lightbox._create(options);
     
    8792    if (!document.getElementsByTagName) { return true; }
    8893
    89      //Lightbox._options(options);
     94     Lightbox._options(options);
    9095
    9196     var buttons = document.getElementsByClassName("buttons");
     
    113118        // document.all should be detected in IE and Opera, workaround for IE gif freezing.
    114119        if(document.all) {
    115             new Effect.Pulsate(loading);
     120            new Effect.Pulsate(loading, { pulses: 15, duration: 10 });
    116121        }
    117122        else {
Note: See TracChangeset for help on using the changeset viewer.