Changeset 188


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

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/views/shared/_pictureHead.gsp

    r182 r188  
    11
    2 <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'webalbum.css')}" />
    3 <link rel="stylesheet" type="text/css" href="${resource(dir: 'css', file: 'lightbox.css')}" />
     2<link rel="stylesheet" href="${resource(dir:'css',file:'lightbox.css')}" />
    43<g:javascript library="prototype/prototype" />
    54<g:javascript library="lightbox" />
  • 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.