I want to create a dynamic slide where user can upload image path to get silde show.. please help me with the new code or with my code
<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript"&gt;
&lt;!--
var img1 = document.getElementById('uimg1').value;
var image1=new Image()
image1.src="img1"
var img2 = document.getElementById('uimg2').value;
var image2=new Image()
image2.src="img2"
var img3 = document.getElementById('uimg3').value;
var image3=new Image()
image3.src="img3"
//--&gt;
&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;form&gt;
&lt;label&gt;Image 1:
&lt;input type="text" id="uimg1" width="100" value=""/&gt;&lt;/label&gt;&lt;br/&gt;
&lt;label&gt;Image 2:
&lt;input type="text" id="uimg2" width="100" value=""/&gt;&lt;/label&gt;&lt;br/&gt;
&lt;label&gt;Image 3:
&lt;input type="text" id="uimg3" width="100" value=""/&gt;&lt;/label&gt;&lt;br/&gt;
&lt;input type="button" id="imgsubmit" value="Create Slideshow" onClick="slideit();"/&gt;
&lt;/form&gt;

&lt;img src="document.getElementById("uimg1").value" name="slide" width="600" height="300" /&gt;
&lt;script&gt;
&lt;!--
//variable that will increment through the images
var step=1
function slideit(){
//if browser does not support the image object, exit.
if (!document.images)
return
document.images.slide.src=eval("image"+step+".src")
if (step&lt;3)
step++
else
step=1
//call function "slideit()" every 2.0 seconds
setTimeout("slideit()",2000)
}
slideit()
//--&gt;
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
