namez,
<!DOCTYPE HTML>
<html>
<head>
<title>Untitled</title>
<meta charset="utf-8">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
$(function() {
var aImages = [{
link: "http://ya.ru",
image: "/upload/image01.jpg",
width: "900"
}, {
link: "http://ya.ru",
image: "/upload/image02.jpg",
width: "1000"
}];
var $block = $('#block')
$.each(aImages, function(indx, el) {
var $div = $('<div/>', {
'class': 'item'
}),
$a = $('<a/>', {
'href': el.link
}),
$img = $('<img/>', {
'src': el.image,
'width': el.width
});
$img.appendTo($a);
$a.appendTo($div);
$div.appendTo($block)
});
alert($('body').html())
});
</script>
</head>
<body>
<div id="block"></div>
</body>
</html>