Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Apr 15th, 2012  |  syntax: None  |  size: 0.47 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. JavaScript Duplicate Empty Boxes Produced by a loop
  2. for(d = 0; d < lotteryNums.length; d++) {
  3.     for(x = 0; x < quickDrawNums.length; x++) {
  4.         if(lotteryNums[d] == quickDrawNums[x]) {                            
  5.             quickDrawNums[x] = "<span class='winner'>" + quickDrawNums[x] + "</span>";                          
  6.             winCounter++;
  7.         } else {
  8.             quickDrawNums[x] = "<span class='number'>" + quickDrawNums[x] + "</span>";
  9.         }
  10.     }
  11. }