473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Extracting Images with Mouse-Over

Is there any method to extract both the images (with and without
mouse-over) from a web site.

Thanks,
Lince M Lawrence
Jul 23 '05 #1
6 1526
Dr. Lince M. Lawrence wrote:
Is there any method to extract both the images (with and without
mouse-over) from a web site.


Yes.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
"Dr. Lince M. Lawrence" <li*****@hotmail.com> wrote in message
news:d4*************************@posting.google.co m...
Is there any method to extract both the images (with and without
mouse-over) from a web site.

Thanks,
Lince M Lawrence


If you mean by right-clicking then no; well maybe, though I haven't tried
it: perhaps (but I doubt it) if you turn off JavaScript then the
"omouseover" won't be enabled.

However, you can always view the source identify the "on" and "off" image
naming convention (such as "image_on.gif" and "image_off.gif") then
right-click on the "on" image, view Properties, cut-and-paste the URL into
the address bar, then change the name to the "off" image.

Or just cut-and-pase the image name from the source to the address bar
keeping the prepended path.
Jul 23 '05 #3
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
Jul 23 '05 #4
"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>&nbsp;(" + 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.
Jul 23 '05 #5
"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


Another way is to copy them from cache.

IE works better as it doesn't change the image's name.

Depending on your OS, the images may be in a folder under:
C:\WINDOWS\Temporary Internet Files\Content.IE5\
Jul 23 '05 #6
Dr. Lince M. Lawrence wrote:
Mr.Randy has said an 'YES'. Shall I assume that, the explanation given
by Mr.McKirahan resembles your method.
Not entirely but his approach works too. Getting the images for a web
page is trivially easy though.
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.


As McKirahan pointed out, the cache is the simplest easiest way. Short
of that, you could write an app that would parse the document for common
image extensions, pull the names, build absolute paths, then create a
dynamic page of img tags with the images. Then its just a matter of
File>Save As in IE and it will save all the images. Might give me
something to tinker with this weekend.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Henrik Berg Nielsen | last post by:
Hi group! I need to extract some text (well numbers actually) from a bunch of similarly looking .png images. After extraction the numbers will be fed to a Python script for further processing....
4
by: Lijun Yang | last post by:
Hey, I am able to disable the right mouse button on images for netscape and IE but it won't work for Opera. Here is the code: // start of the code var clickmessage="Sorry, you don't have...
2
by: Roman Kagan | last post by:
Hi guys, Have a multitude of images in an Access database, which I need to extract. I Was able to extract them. Images are in .TIF format. The problem is none of the images would open up. Don't...
4
by: crafuse | last post by:
Hello, I've overridden the WndProc function in my form to hand some special behavior. Specifically, I look for the WM_NCMOUSEMOVE event to tell me when the user is trying to move the window by...
1
by: ray well | last post by:
hi, i need to give the user the ability to extract a rectangular area of their choice from a graphic displayed in a picture box to the clipboard, so they can use it elsewhere. say the graphic...
4
by: Ant | last post by:
Hi all, My kids have a bunch of games that have to be run from CD (on Windows XP). Now they're not very careful with them, and so I have a plan. I've downloaded a utility (Daemon Tools) which...
7
mikek12004
by: mikek12004 | last post by:
I want in all my scrolling divs to remove the scroll bar-quite easy through css, so now how to scroll the contents? After some searching I have found the following code which works perfectly ...
2
by: bahnfire | last post by:
Hi, I am hoping that I finally have the right group :-) I am using Visual C++ Express 2008 and am trying to change the taskbar icon that I am using (notifyIcon1) as some state changes (button...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.