title: Loop for and offset
body: <p>Hi I have maybe simple question. I need to fill some content by some offset. I have loop like this one:</p>
  
  <pre><code>for(i=0;i&lt;=459; i++)
  {
   document.getElementById("someElement").style.top = someFunction(i);
  }
  </code></pre>
  
  <p>Problem is, variable <code>i</code> must be by offset like this <code>0,46,92,138,184,230,276,322,368,414</code> and after 10 iteration index change to <code>1,47,93,139,185 ...</code> to finish in position 459.</p>