473,669 Members | 2,335 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 1544
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.javas cript FAQ - http://jibbering.com/faq
Jul 23 '05 #2
"Dr. Lince M. Lawrence" <li*****@hotmai l.com> wrote in message
news:d4******** *************** **@posting.goog le.com...
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.g if" 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*****@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>&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 "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.
Jul 23 '05 #5
"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


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\Temp orary Internet Files\Content.I E5\
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.javas cript 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
15193
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. Any good ideas on how to go about with this? I have no idea whatsoever about how to extract the numbers out of the images... Thanks in advance,
4
9658
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 permission to right-click." function protectImages () {
2
1468
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 know what to do next. Maybe someone has any experience with this sort of a problem. Please, help. Below are the first few lines of one image when opened with Notepad. Thanks in advance. Roman.
4
7910
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 draggin the title bar. However, I am having trouble extracting the POINT structure that is supposed to come with the message. For example: Structure POINTS Public x As Short
1
2491
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 has an image of a house with a door in it and the user is interested in the door. the rectangle is selected by placing the mouse on the upper left corner of the door, pressing down on the left mouse button, and draging it to the lower right...
4
8667
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 allows me to mount and unmount virtual CD drives onto an ISO image. This works well, but I want to wrap this in a Python GUI which will present them with a list of games in a particular directory. Essentially the steps are this:
7
1670
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 <HTML> <HEAD> <TITLE>Document Title</TITLE> <script type="text/javascript">
2
4674
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 press, etc) in my form/app. I have read that I can use imageList1 and have the following: //
5
13348
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 http://mghospedagem.com/images/controlpanel.jpg instead of http://mghospedagem.comhttp://mghospedagem.com/images/controlpanel.jpg As u see, there's the website URL before the image URL.
0
8462
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8382
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8802
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8658
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7405
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6209
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5682
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2792
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2028
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.