MooTools

MooTools (My Object -Oriented Tools) is a free JavaScript framework for the efficient development of extendable and cross-browser compatible code. It is object-oriented, modular and compact. The framework is available under the MIT license. About 5 % of all websites use MooTools.

Properties

  • So that it is extensible and modular developers possible to include only the components that are actually needed.
  • Strong object orientation for flexibility and extensibility.
  • Effect component with transitions, animations for within the page.

Components

MooTools includes a number of components, each of which is not required for each application. Some of the main components are:

An optional, compressed JavaScript file that contains user- components can be created directly from the download on the MooTools website.

Browser Compatibility

MooTools is compatible and tested with:

  • Safari 3
  • Internet Explorer 6
  • Firefox 2
  • Opera 9.0
  • Chrome 4

Object-Oriented Programming

MooTools includes a robust class library and an advanced transmission system that supports the reuse of source code and a simple extension. For example:

Var Animal = new Class ( {        initialize: function (name ) {          this.name = name;      }   });   var cat = new Class ( {        Extends: Animal,        talk: function () {          return ' Meow! ';      }   });   var dog = new Class ( {        Extends: Animal,        talk: function () {          return ' Woof! Woof! ';      }   });   var animals = {      a: new Cat ( ' Missy '),      b: new cat ( 'Mr. Bojangles' ),      c: new Dog ( ' Lassie ') };   Object.each ( animals, function ( animal ) {      alert ( tier.name ': ' tier.reden ()); });   / / Display the dialog box / / / / Missy: Meow! / / Mr. Bojangles: Meow! / / Lassie: Woof! Woof! In addition, it provides its own set of classes available, with which it is for example possible to easily achieve different effects. This includes resizing the browser window, input and Ausblendeeffekte, motion effects, and much more (Ajax, JSON, etc.). Transition effects can be achieved with a few lines of code, as MooTools Most process steps yourself.

581615
de