This is a script that creates an animated png (or gif/jpg).
Javascript
window.addEvent('domready',function(){
var myAnimation = new Awf.pngAnimation('gnome-spinner.png',{
width: 22,
height: 22,
rows: 5,
cols: 7,
fps: 10
});
$(myAnimation).inject($('spinner'));
// With the stop method you can stop the animation,
// and with the start method you can start it again
// myAnimation.stop();
// $(myAnimation).destroy();
});
HTML <div id="spinner"></div>Image
MIT-style license.