<div id="div">
<img src="#" title="1" alt="" />
<img src="#" title="2" alt="" />
<img src="#" title="3" alt="" />
</div>
<script type="text/javascript">
var div = document.getElementById('div').getElementsByTagName('img');
for(i=0; i<div.length; i++){
alert(div[i].title);
}
</script>