<canvas height="20" width="100%"> <text oninit="updateTimer()"><attribute name="secondsPassed" type="number" value="
0
"/><method name="updateTimer" args="time=null"> this.setAttribute('text', this.secondsPassed ); this.secondsPassed++; if( typeof this.del == "undefined" ) { this.del = new lz.Delegate( this, "updateTimer" ); lz.Timer.addTimer( this.del, 1000 ); } else { lz.Timer.resetTimer( this.del, 1000 ); } </method> </text> </canvas> <!-- * X_LZ_COPYRIGHT_BEGIN *************************************************** * Copyright 2008, 2010 Laszlo Systems, Inc. All Rights Reserved. * * Use is subject to license terms. * * X_LZ_COPYRIGHT_END ****************************************************** -->