setTimeout working fast
<pre><code> var k=0;var n=0;
  function shiftrigh(){
  n=n+1;
  if(n&lt;=193)
   window.setTimeout(shiftright(),100);
  else
      n=0;}

function shiftright(){
   k-=1;
   document.getElementById("abcmngcontainer").style.left=k+"px";
   window.setTimeout(shiftrigh(),100);
}

function shiftlef(){
  n=n+1;
  if(n&lt;=193)
   window.setTimeout(shiftleft(),100);
  else
      n=0;}

function shiftleft(){
   k+=1;
   document.getElementById("abcmngcontainer").style.left=k+"px";
   window.setTimeout(shiftlef(),100);
}
</code></pre>

<p>Hi, I have the above code. The function <code>shiftrigh</code> when called invokes <code>shiftright</code> and then a cycle 
is created then goes on until <code>n</code> is <code>193</code>. Same is the case for the <code>shiflef</code> pair.
The code is working but it is working pretty quick. Whether I decrease the time value in settimeout or increase it, it remains the same. The updates are pretty quick, not smooth enough to see.</p>
