mooScripts index ›
mooCounter
v1.0
Javascript
HTML
Demo
loading...
Example 1 (defaults)
Default: counting up ten seconds:
X
Example 2
Counting up five seconds:
X
Example 3
Counting down thirty seconds:
X
Description
Create multiple instances of a live counter. It is possible to count up and down.
Installation
Download Mootools core.
Download the mooCounter javascript file.
Include both files inside your website document.
Create a new instance for your mooCounter by adding the following code to your javascript header:
var
mooCnt1
=
new
mooCounter
(
)
;
Customize the mooCounter to your own wishes.
Activate the counter by placing the collowing code:
mooCnt1.
counter
(
)
;
Options
(default)
countAmount
(10)
: Amount seconds to count.
count
(up)
: Direction for count, up or down.
countID
(counter)
: Element id where counter must appear.
Requirements
Mootools 1.2
: the first version of mooCounter is created with Mootools 1.2. So you'll need this version or later.
Core Components
Core
Core
Browser
Native
Array
Function
Number
String
Hash
Event
Class
Class
Class.Extra
Element
Element
Element.Event
Utilities
DomReady
Download
Mootools 1.2.1 Core
YUI compressed,
only with needed components!
mooCounter v1.0
YUI compressed
mooCounter v1.0
no compression, for developers use
Changelog
27 july 2008, version 1.0
: First release.