Js code for progressbar, not working
<pre><code>&lt;div&gt;&lt;div id="movingbar"&gt;&lt;/div&gt;&lt;/div&gt;

var i;
function startTime( i )
{
    if ( i &lt; 100 )
    {
        document.getElementById("movingbar").style.width = i + "%";
        t = setTimeout('startTime( i++ )', 1000);
    } else return;
}
</code></pre>

<p>This should produce something like a progress bar. But the function is executed only once. What is wrong O_o The recursion should not end until <strong>i</strong> is under 100!?! No errors on FireBug and IE.</p>
