function findImg() {
function findImg() {
var. .all("chartImg").getElementsByTagName("img");
var imgURLs = "";
for (var i = 0; i var imgPath = getImgPath (charImg[i].src);
var imgNames=getImgNames(imgPath);
if (imgNames!= "vt2.png") {
imgURLs = imgNames; //如果用document.getElementsByTagName( "img")[i].src;每取一個圖片地址就會對全部圖片查找一次,這樣效率比較低,還是儲存在imgs中比較好!
}
}
alert( imgURLs);
}