Javascript
I'm doing a random numbering game: I would like to do something like a slot machine game. That is, only one number should appear inside a div and the numbers on the outside should be invisible.
var array = [1,2,3,4,5,6,7,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,107,8,9,10,11,12,13,9,10,11,12,13,14,15,14,15];
var contador = 1;
var novoTopo = array.length * 200 * -1;
$('#valores').css({top: + novoTopo});
for(var i =0;i<array.length;i++){
$("#valores").append("<div id='result"+contador+"' classs='name'>"+array[i]+"</div>");
contador++;
}
<div id="valores">
</div>