SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Resource

Time Master

Categories...
Language
JavaScript
Product
IE3, IE4, NS3, NS4
Task
Cross-Browser DHTML, Utilities
Technology
ECMA-262

Sponsored Links
Developer's Paradise : Inside Technique :
Time Master
Submission by SiteExperts Staff

Go to the resource:
Time Master

Add to Assistant

Short Description
Timers are an essential tool for web-development. Learn how to sequence and choreograph events with

Long Description
Timers are an essential tool for web-development. Learn how to sequence and choreograph events with our Timeline object.

Author
Scott Isaacs
Submission URL
http://www.SiteExperts.com/tips/functions/ts07/page1.asp
Submission Date
Jun 1,1998
 

Discussion and Rate this Resource
Overall Rating: 3.9

azrasta on Jun 13, 2000 at 10:37:04 AMRating: 3
brian on Apr 18, 2000 at 1:38:16 AMRating: 5

The whole point about an object is that it is self contained and you don't need to understand it to be able to use it.

Of course, it's very good and I'm sure I can find a use for it.

nadtech on Apr 17, 2000 at 8:40:28 AMRating: 1

In my mind the article did not meet its goals. Timeline_Add(ms, fn)  and Timeline_RUN() were not well explained.  To me this defeats the purpose of the article.  Sure I can use this clever code, but I'd like to understand what the code does.  Considering I've been doing DHTML for a while and am not a beginner, I expected a better explanation, with respect to these advanced uses of the javascript language.

Hagbart Celine on May 7, 1999 at 4:23:35 AMRating: 3

I find that the object is too complex and most of its tasks could be solved by something like:

function timeline_object() {
 this.events = new Array();
 this.eventsRun = new Array();
 }
function timeline_run() {
 count = this.events.length;
 for (x=0; x<count; x++) {
  window.setTimeout(this.eventsRun[x],this.events[x]);
  }
 }
Timeline = timeline_object;
new Timeline();
Timeline.prototype.run = timeline_run;
A sample code would then look like:
t = new Timeline();
t.events[0] = 1000;
t.eventsRun[0] = "animation.run()";
t.events[1] = 2000;
t.eventsRun[1] = "animationTwo.run()";
In combination with a Animation object this could be a powerfull script, even though its simpler.
XAnonymousX on Apr 21, 1999 at 8:23:57 PMRating: 4
is it just me or is this similar to the Macromedia Dreamweaver timeline script... Probably just me...


To rate and comment on a resource, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password

Copyright © 1997-2008 InsideDHTML.com, LLC. All rights reserved.