Image slide show animation doesn't animate
<p>I'm trying to make an animated slide show. This code works but without animation so I see the change of position when the function ends, and it's take the time suppose to animate </p>

<pre><code>function slide()
{
for (var i=0;i&lt;100;i++)
{
setTimeout("realslide(i);",100);
}

};

function realslide(ii){
var I=ii;
var s_e=document.getElementById("slide_element");
var po="-"+i+"px";
se.style.left=po;
};
</code></pre>
