<b:if cond='data:view.isSingleItem'>
<script type='text/javascript'>
//<![CDATA[
var y = document.getElementById("Blog1").getElementsByTagName("img");for (var i = 0; i < y.length;i++) {y[i].setAttribute("alt",document.title);y[i].setAttribute("title",document.title);};
//]]>
</script>
</b:if>
Note:
1. No require
Jquery library
2. Put that code before
</body>