Hello , am newbie in javascript.
I want to make a sample javascript lideshow. I have the code of slie show but in one form i want the user put the time of changing the picture. I dont`t know how to make it. Someone if can help i1ll be very thankfull Sorry for my english here is my code

<html>
<head>
<title>Javascript - domashno!!!</title>
<SCRIPT LANGUAGE="JavaScript">
<!--

var dimages=new Array();
var numImages=8;

for (i=0; i<numImages; i++)
{
dimages[i]=new Image();
dimages[i].src="pr/"+(i+1)+".gif";
}
var curImage=-1;

function swapPicture()
{
if (document.images)
{
var nextImage=curImage+1;
if (nextImage>=numImages)
nextImage=0;
if (dimages[nextImage] && dimages[nextImage].complete)
{
var target=0;
if (document.images.myImage)
target=document.images.myImage;
if (document.all && document.getElementById("myImage"))
target=document.getElementById("myImage");

// make sure target is valid. It might not be valid
// if the page has not finished loading
if (target)
{
target.src=dimages[nextImage].src;
curImage=nextImage;
}

setTimeout("swapPicture()", 5000);

}
else
{
setTimeout("swapPicture()", 500);
}
}
}

setTimeout("swapPicture()", 5000);

//-->
</SCRIPT>
</head>
<body>
<IMG WIDTH=250 HEIGHT=250 ID="myImage" NAME="myImage"
SRC="pr/2.gif"></IMG>
<TABLE width='100%' border=0 align='center'>
<center><TBODY>
<TR>
<td></td>
<TABLE width='100%' border=0 align='center'>
<center><TBODY>
<TR>
<td></td>
<td>Vreme za smqna: <input type='text' style='BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; FONT-SIZE: 15px; BORDER-LEFT: 0px solid; BORDER-BOTTOM: 0px solid ; background-image: url(subs/images/20x10.gif); BACKGROUND-COLOR: #7CA3CA' name='vreme'>

<input type='submit' style='BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; BORDER-BOTTOM: 0px solid; background-image: url(subs/images/20x10.gif); BACKGROUND-COLOR: #7CA3CA' value='GAZ'></td></tr>
</table>
</body>
</html>