Algorithm came up with an awesome Timer Class for Object-Oriented timeouts. He posted it here:
The Timer class, for object-oriented timeouts
For the most part, it works great! However, I'm having problems with the clearTimeout() function.
I'm working on an OO Message Ticker script, that uses the Timer Class. The only real problem is that I have to invoke obj.clearTimeout(0) several times before it takes effect. Really, I'm not entirely sure what the parameter should be. Not passing anything seems to void the functionality of it.
There also seems to be an error that pops up in Mozilla, but doesn't seem to stall the script at all.
If anyone could take a look at my script and the bundled timer class, I'd appreciate it. I know that Beetle is familiar with it, as well as Algorithm (of course!).