Changeset 714 for trunk/web-app


Ignore:
Timestamp:
Nov 22, 2010, 7:27:37 PM (14 years ago)
Author:
gav
Message:

Speed up jsUtil.js show and hide effects, especially looping effects.

File:
1 edited

Legend:

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

    r712 r714  
    1717
    1818function showUtil(id) {
    19     Effect.Appear(id,{duration:0.4,queue:'end'});
     19    Effect.Appear(id,{duration:0.2,queue:'end'});
    2020}
    2121
    2222function hideUtil(id) {
    23     Effect.Fade(id,{duration:0.4,queue:'end'});
     23    Effect.Fade(id,{duration:0.2,queue:'end'});
    2424}
    2525
     
    8484    var i=0;
    8585    for (i=0; i < len; i++) {
    86         Effect.Appear(idArray[i],{duration:0.1,queue:'end'});
     86        Effect.Appear(idArray[i],{duration:0.05,queue:'end'});
    8787    }
    8888}
     
    9292    var i = idArray.length;
    9393    while (i--) {
    94         Effect.Fade(idArray[i],{duration:0.1,queue:'end'});
     94        Effect.Fade(idArray[i],{duration:0.05,queue:'end'});
    9595    }
    9696}
Note: See TracChangeset for help on using the changeset viewer.