The BeginRequest() Method
Listing 3. The BeginRequest() method acts as an event handler for the beginRequest method. It starts an interval timer that calls an animation method. function BeginRequest(sender,args) { intervalID = window.setInterval("Animate()", 500); } function Animate() { var div = $get("divAnimate"); div.className = GetCssClass(div.className); } function GetCssClass(currClass) { return (currClass=="DottedLines")?"SolidLine":"DottedLines"; } |