Similar js
& lt! DOCTYPE? HTML & gt
& lthtml & gt
& lthead & gt
& ltmeta? charset="UTF-8 "? /& gt;
& lttitle & gt model? PAGE & lt/title & gt;
& lt style? type="text/css " >
*{
Margin:? 0;
Fill:? 0;
}
Table? {
Margin:? 0? Automatic;
Border:? 1px? Solid? Black;
Border folding:? Collapse;
Border:? 1px? Solid? Black;
}
td? {
Border:? 1px? Solid? Black;
}
# Lottery? {
Background color:? Red;
}
& lt/style & gt;
& lt script? type = " text/JavaScript " & gt;
var? Painting? =
{
Timer? :? Empty,
Sleep? :? 60,
rnd? :? '000000000',
Initialize? :? Function? ()
{
var? Lottery? =? This, the lottery? =? document.getElementById? ("lucky draw");
var? tr? =? Lottery. insertRow? (0);
var? arr? =? This. arr? =? This. rnd.split? ('');
For what? (? var? Me? =? 0; ? Me? & lt? Array length; ? i++)
{
var? td? =? tr.insertCell? (transmission unit length);
td.style.textAlign? =? Center';
var? n? =? document.createTextNode? (arr[I]);
TD . appendchild(n);
}
var? Cells? =? lottery . rows[lottery . rows . length? -? 1]. Cell [0];
cell.style.textAlign? =? Center';
cell.colSpan? =? Array length;
cell.children[0]。 onclick? =? this.start
cell.children[ 1]。 onclick? =? this.stop
},
Start? :? Function? ()
{
What if? (! Drawing. Timer)
{
var? Row? =? Draw. Lottery. Line [0];
Painting. Timer? =? setInterval? (function? ()
{
For what? (? var? Me? =? 0; ? Me? & lt? draw . arr . length; ? i++)
{
row.cells[i]。 Child node [0]. nodeValue? =? mathmatics Floor? (Math.random? ()? *? 10);
}
},? draw . sleep);
}
},
Stop? :? Function? ()
{
What if? (! ! Drawing. Timer)
{
clearInterval? (draw . timer);
Painting. Timer? =? null
}
}
};
window.onload? =? Function? ()
{
draw.init? ();
}
& lt/script & gt;
& lt/head & gt;
& ltbody & gt
& lt table? Id= "lottery ticket">
& lttr & gt
& lttd & gt
& lt input? type="button "? Value= "Start the lottery"? /& gt; ?
& lt input? type="button "? Value= "Stop the lottery"? /& gt;
& lt/TD & gt;
& lt/tr & gt;
& lt/table & gt;
& lt/body & gt;
& lt/html & gt;