Copy code code as follows:
function findimg () {
var charimg = document.all ("chartimg"). GetelementsbytagName ("IMG");
var imgurn = "";
for (var I = 0; I <cHarimg.Length; I ++) {
var IMGPATH = getimgpath (charimg [i] .src);
vargnames = getimgnames (imgpath);
if (imgnames! = "vt2.png") {
Imgurn += Imgnames; // If you use the document.Getelementsbybytagname ("IMG") [i] .src; each picture address will be found all the pictures, so the efficiency is relatively low, or it is better stored in IMGS!
}
}
alert (imgurs);
}