<table><tr>
<td class="sumItg">300</td>
<td class="sumItg">400</td>
<td class="sumItg">500</td>
<td class="sumItg">600</td>
</tr></table>
<script type="text/javascript">
var sumItg=0, td=document.getElementsByTagName('td'), i=td.length;
while(i--) {if(td[i].className=='sumItg') sumItg+=+td[i].innerHTML}
alert(sumItg)
</script>