i am trying to slide image in a window one after another.But this code seems not working.what could be the possible corrections to this code
Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>

<style>
#holder{
width:300px;
height:300px;
position:relative;
margin:0 auto;
border:1px solid black;
top:200px;
}
img{
	width:300px;
height:300px;
}
</style>
<script>
var get=["image1.jpg","image2.jpg","image3.jpg"];
var i=0;
function begin(){
	
	var d=document.getElementById("give");
	
	for(i=0;i<3;i++){
	
	       d.setAttribute("src",get[i]);
	
	}
	
}
setTimeout(begin,1000);
</script>
</head>

<body>

<div id="holder" ><img  src="" id="give"></div>
<script>begin()</script>
</body>
</html>