js怎么获取 这个div内图片的宽度和

<div style="width:100000px;">
<img src="images/2009021121575533977.jpg" width="486" height="348" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
</div>
≡ jié ≡<thezj.com@gmail.com> 11:06:43
大大们
≡ jié ≡<thezj.com@gmail.com> 11:07:19
用js怎么获取 这个div内图片的宽度和呀

≡ jié ≡<thezj.com@gmail.com> 11:07:35
呼叫大大出现
建议你使用JQUERY框架,这样才会在各大主流浏览器兼容。
这样啊?你还不如在js中先设置好图片的大小。
下面是代码,测试通过

<div style="width:100000px;" id="pal">
<img src="images/2009021121575533977.jpg" width="486" height="348" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
<img src="images/2009021121575533977.jpg" />
</div>

<SCRIPT>
var obj=document.getElementById("pal");
var imgs=obj.getElementsByTagName("数皮img");
var sum=0;
for(var i=0;i<imgs.length;i++)
sum+=imgs[i].width;
alert(sum);
<薯庆差差芦/SCRIPT>