i've been trying to populate a div with multiple images with the help of an array.what could be the mistakes in here ?
Code:
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Untitled Document</title>
<style>
*{
	margin:0px;padding:0px;}

#slider{
	width:100%;
	height:150px;
	border:1px solid black;
	position:absolute;
	top:200px;
}
#slider img{
	width:100px;
	height:140px;
	margin-left:2px;
}
</style>
<script>
function l(){
var imag=["image1.jpg","image2.jpg","image3.jpg","image4.jpg"];
var m=document.getElementById("slider");
 get_width=m.offsetWidth;
var no_of_img=parseInt(get_width/(100));
var i;
for(i=0;i<no_of_img;i++){
	m.appendChild += <img src="imag[i]" /> ;
}

}

</script>



</head>


<body style="position:relative;">
<div  id="board"></div><div id="imagebox"></div>
<div id="slider"></div>
<script>l();</script>
</body>
</html>