The theory is just to define a timer to trigger an event. They wrote some functions
for it. I think you can use applet to implement if project requirement is huge or
just write a timer by javascript.
BTW, it is my opinion. I always perfer focusing on one aspect to finding a balance
on this issue.