"Dr. Lince M. Lawrence" <li*****@hotmai l.com> wrote in message
news:d4******** *************** **@posting.goog le.com...
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.h tm</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(" InternetExplore r.Application") ;
oIEA.Navigate(s URL)
while(oIEA.read yState != 4) {}
var sBOR = " border='1'";
if (!confirm("Show images with a border?")) sBOR = "";
var oDIC = new ActiveXObject(" Scripting.Dicti onary");
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.i mages[j].src;
if (sIMG.indexOf(" ?") > 0) {
sIMG = sIMG.substr(0,s IMG.indexOf("?" ));
}
sEXT = sIMG.substr(sIM G.length-4,sIMG.length). toLowerCase();
if (sIMG != "" && "|.gif|.jpg|.jp eg|.png|".index Of(sEXT) > 0) {
if (!oDIC.Exists(s IMG)) {
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 "onMouseOve r" images;
so I guess it isn't your solution after all.
"onMouseOve r" 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 "constructe d".
Thus, what you want may not be doable.
I hope to hear from others on this.