javascript - How to Animate this Bingo? want to see ramdom image before to stop and select a image -


hi guys having trouble in code want animate before choose ball

here code '

var imagesarray = []; for(var i=1;i<=75;i++) imagesarray.push(i+".png");  var usedimages = {}; var usedimagescount = 0;  function displayimage()  {  var num =5+math.floor(math.random() * (imagesarray.length)); counter = 0;  (a=0;a<num;a++) {   if (!usedimages[num]){       document.canvas.src = imagesarray[num];       usedimages[num] = true;       usedimagescount++;       if (usedimagedcount === imagesarray.length){           usedimagedcount = 0;           usedimages = {};       }   } else {       displayimage();   } }  counter++;  if (counter<100) {settimeout("displayimage(counter);",75);} else {checkmatch();}  }  } 

'


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -