<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<div id="block">...</div>
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script>
<script>
var aImages =[
{
link: "http://ya.ru",
image :"/upload/image01.jpg",
width: "900"
},
{
link: "http://ya.ru",
image :"/upload/image02.jpg",
width: "1000"
}
]
jQuery.each( aImages, function() {
$("#block").append("<div class='item' style='width:" + this['width'] + "'><a href='" + this['link'] + "' title=''><img src='" + this['image'] + "' /></a></div>");
});
</script>
</body>
</html>