Return to Snippet

Revision: 25820
at April 11, 2010 08:04 by cfleschhut


Initial Code
window.addEvent("domready", function() {
    var log = $("log");
    var count = 0;
    var addDot = function() {
        if (count < 20) {
            this.set("text", this.get("text") + ".");
            count++;
        } else {
            log.empty();
            count = 0;
        }
    };
    var myPeriodical = addDot.periodical(50, log);
    (function() { $clear(myPeriodical); }).delay(4000);
});

Initial URL
http://jsfiddle.net/EXbB3/

Initial Description
via [http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/](http://ryanflorence.com/mootools-for-beginners-part-5-native-extensions/)

Initial Title
MooTools Dots Loading Indicator

Initial Tags
javascript

Initial Language
JavaScript