<script type="text/javascript" src="http://yandex.st/jquery/1.4.4/jquery.min.js"></script>
<div id=My>
<img src="/i/blank.gif"/>
<img src="./i/blank.gif"/>
<img src="../i/blank.gif"/>
<img src="http://lookatcode.com/i/blank.gif">
</div>
<script>
var N_Zmen=0;
$('img[src^="../"],img[src^="./"],img[src^="/"]').each(function (i){
this.src = this.src;
N_Zmen++;
});
alert( N_Zmen+'\n'+$("#My").html())
</script>