Revision: 14113
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 19, 2009 11:44 by pdswan
Initial Code
var CoverUps = { initialized: false, todo: [], initialize: function(thumbnails){ thumbnails.each(function(i){ var image = new Image(); image.onload = function(){ coverup = $('project' + i.id + '_cover-up'); if(coverup){ new Effect.Fade(coverup); }else{ CoverUps.todo.push('project' + i.id + '_cover-up'); } } image.src = i.image; }); Event.observe(document, 'dom:loaded', CoverUps.fadeLeftovers); }, fadeLeftovers: function(){ CoverUps.todo.each(function(e){ new Effect.Fade(e); }); } };
Initial URL
Initial Description
needs to be modified to be more general purpose.
Initial Title
Loading Elements for Images
Initial Tags
Initial Language
JavaScript