"Dr. Lince M. Lawrence" <li*****@hotmail.com> wrote in message
news:d4*************************@posting.google.co m...
Mr.Randy has said an 'YES'. Shall I assume that, the explanation given
by Mr.McKirahan resembles your method.
If yes or no. I am aware of what Mr.McKirahan has said. I am looking
for some application which will help to extract the images. Either,
the entire images of a page, or selected ones.
Thanks,
Lince M Lawrence
This may be close to what you want.
Watch for word-wrap.
<html>
<head>
<title>images.htm</title>
</head>
<body>
<code>
<script type="text/javascript">
var aURL = "http://www.google.com/";
var sURL = prompt("Enter a URL:",aURL);
var oIEA = new ActiveXObject("InternetExplorer.Application");
oIEA.Navigate(sURL)
while(oIEA.readyState != 4) {}
var sBOR = " border='1'";
if (!confirm("Show images with a border?")) sBOR = "";
var oDIC = new ActiveXObject("Scripting.Dictionary");
var sEXT;
var sHTM = "";
var iIMG = 0;
var sIMG;
var xIMG = "";
var sLIN = "<hr align='left' width='700'>";
for (var j=0; j<oIEA.document.images.length; j++) {
sIMG = oIEA.document.images[j].src;
if (sIMG.indexOf("?") > 0) {
sIMG = sIMG.substr(0,sIMG.indexOf("?"));
}
sEXT = sIMG.substr(sIMG.length-4,sIMG.length).toLowerCase();
if (sIMG != "" && "|.gif|.jpg|.jpeg|.png|".indexOf(sEXT) > 0) {
if (!oDIC.Exists(sIMG)) {
oDIC.Add(sIMG, "");
iIMG++;
xIMG += iIMG + ". " + sIMG + "<br>";
sHTM += sLIN + iIMG + ". <img src='" + sIMG + "' alt='" +
sIMG + "'" + sBOR + ">";
}
}
}
document.write("<b>" + sURL + "</b> (" + iIMG + " images)" + sLIN);
document.write(xIMG + sHTM + sLIN);
if (confirm("View " + sURL + "?")) {
oIEA.visible = true;
}
</script>
</code>
</body>
</html>
However, a security warning is issued.
Note that it can't detect "onMouseOver" images;
so I guess it isn't your solution after all.
"onMouseOver" images can be loaded in two ways;
either by a direct reference to the image
or by calling a function to swap the image.
Also, the image name may be "constructed".
Thus, what you want may not be doable.
I hope to hear from others on this.