Timer: Invoke callback functions periodically

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 355 All time: 109 This week: 14Up
Version License JavaScript version Categories
timer 1GNU General Publi...1.0Time and Date, Events
Description Author

This object can invoke callback functions periodically.

It is an enhanced version of the JSPoll object originally written by Kulcsár Zoltán's.

This version has a variable named currentTime that counts down from a starting value to 0 or forever.

It can also invoke a registered callback function when the time is up.

The displayTime function can show the remaining time inside a given page element.

Picture of Jeff Martin
Name: Jeff Martin <contact>
Classes: 1 package by
Country: United States United States
Age: ???
All time rank: 708 in United States United States
Week rank: 6 Up2 in United States United States Up

  Files folder image Files  
File Role Description
Plain text file class.Timer.js Class The timer object
Accessible without login Plain text file timer.html Example Example that uses the timer to implement a sleep timer for external websites.

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:109
This week:14Up