equal
deleted
inserted
replaced
1 // Original image sources are stored in this array |
1 // Original image sources are stored in this array |
2 var originalImageSources = new Array(); |
2 var originalImageSources = new Array(); |
3 |
|
4 // Cid identifier string, if the image name begins with cid: it's shown |
|
5 var cid = new String("cid:"); |
|
6 |
3 |
7 // Number of images hidden (or replaced with our placeholder image) |
4 // Number of images hidden (or replaced with our placeholder image) |
8 var hiddenCount = 0; |
5 var hiddenCount = 0; |
9 |
6 |
10 // Replace image sources with our placeholder (if the autoloading is disabled) |
7 // Replace image sources with our placeholder (if the autoloading is disabled) |
15 doc = document.frames[frameId].document; |
12 doc = document.frames[frameId].document; |
16 } |
13 } |
17 for (i = 0; i < doc.images.length; i++) { |
14 for (i = 0; i < doc.images.length; i++) { |
18 var image = doc.images[i]; |
15 var image = doc.images[i]; |
19 originalImageSources.push(image.src); |
16 originalImageSources.push(image.src); |
20 if (image.src.length > 0 && image.src.indexOf(cid) == -1) { |
17 if (image.src.length > 0) { |
21 doc.images[i].src = "../hidden.png"; |
18 doc.images[i].src = "../hidden.png"; |
22 hiddenCount++; |
19 hiddenCount++; |
23 } |
20 } |
24 } |
21 } |
25 if (hiddenCount == 0) { |
22 if (hiddenCount == 0) { |