in

ASP.NET Weblogs

Andy Smith's Blog

Page.RegisterStartupScript('Andy', 'MetaBuilders_WebControls_GainKnowledge();');

IE Menu Extension: Copy Image Url

Occasionally in IE, I'd get frustrated because there's no easy way ( at least to my knowledge ) to get the url of an image that's right there on the page in front of me. I finally decided to sit down and implement a CopyImageUrl menu extension so that I can right click an image and select “Copy Image Url”. tada. hope you find it useful.

UPDATE:
I've updated the package to be an .inf installer. This should give me windows-folder independence. If it's already working for you, ignore the update. If it isn't working for you... download the new version and try that.

 

Comments

 

Rob Chartier said:


Right click it and hit properties.

January 28, 2004 2:10 PM
 

Andy Smith said:

hah!

why did i never try that...

well, at least i reduced the Get It Click Count©
January 28, 2004 2:22 PM
 

Todd Moon said:

LOL!

I was going to mention properties too. How "easy" do you want it? :)

But yeah, two clicks is better than two clicks, a drag, and two more clicks.

I just installed it. Two clicks and a drag is two clicks and a drag too many for me.
January 28, 2004 2:43 PM
 

Scott Mitchell said:

Another option: Mozilla FireBird - it has a Copy Image Location option when you right-click on an image...
January 28, 2004 3:06 PM
 

Andy Smith said:

Scott, are you seriously suggesting switching browsers simply because an addin, that i've already written and installed, comes as a built in feature in a different browser?
January 28, 2004 3:14 PM
 

Vazz said:

I use Firebird's Copy Image Location all the time. Its nice to have it in IE though. Thanks.
January 28, 2004 4:15 PM
 

Derick Bailey said:

I can't get your menu item to work. i installed it, and the menu itme shows up, but never copies anything when i click it.
January 28, 2004 4:30 PM
 

Derick Bailey said:

I got it working - you're assuming everyone is running WinXP or has installed windows to the "c:\windows\" folder... i modified the registry settings to point to the right folder (c:\winnt\ in my Win2K system - win2K installs to the WinNT folder by default).
January 28, 2004 4:33 PM
 

Andy Smith said:

Is there a way to make .reg files windows-install-folder agnostic?
January 28, 2004 5:30 PM
 

Jon Galloway said:

I'm pretty sure you can just use %WINDIR% instead of c:\windows\ or c:\winnt\
January 29, 2004 2:08 AM
 

Jon Galloway said:

Hmmm... I tested it out further and it doesn't seem to work. You might try to go with an INF file instead of a REG file. That's what they did for FullSource (http://www.thundermain.com/code/FullSource.aspx), which uses the exact same method you're using (html file in windows\web\).

More here:
http://my.execpc.com/~sfritz/shellext-tut/tut6-end.html
January 29, 2004 2:32 AM
 

Wizard said:

You will have a problem if the website disables the use of the right click.!
January 29, 2004 10:11 AM
 

Brad C. said:

The right click, properties method doesn't work if the image is a link... then you get the properties of the link instead of the image. I vote for the addin.
January 29, 2004 10:55 AM
 

Jeff A. said:

Using IE 6 (without the add-in), I get the properties for the image from a linked image, not the properties of link. For example, the "Powered by ASP.net" image at the bottom of this page.

Properties screen shot:
http://roamer.dyndns.org:8080/temp/image_properties.jpg
January 29, 2004 11:54 AM
 

Jcl said:

doesn't copy for me... it shows the menu extension, but doesn't copy the URL (i've always used the properties thing, this is convenient... if it works)
January 29, 2004 1:50 PM
 

Stephane Rodriguez said:


Another way to do it :

<script language=javascript>
var img = external.menuArguments.event.srcElement;
clipboardData.setData("Text",img.src);
</script>


http://www.arstdesign.com/articles/ietimesaver.html

January 29, 2004 5:28 PM
 

Andy Smith said:

I copied the technique i use from one of the MS "web developer accessories" addins.
January 29, 2004 5:33 PM
 

TrackBack said:

January 30, 2004 11:40 AM
 

willo said:

Thank YOU! This is exactly what I was looking for & it works great.
February 9, 2004 1:10 AM
 

Marsha said:

Trying out - I'm stupid
February 13, 2004 10:29 PM
 

Gale Andrews said:

Am I getting tired? I cannot see the place to dounload this anywhere?
April 30, 2004 5:59 PM
 

TrackBack said:

May 9, 2004 8:41 PM
 

Dave said:

Did you change the download location?  Download link has a 404 error.  Thanks

February 2, 2008 9:27 AM
 

Dude said:

Yeah the download link is dead, shame!

June 8, 2008 11:25 PM
 

Is oxycodone and oxycontin the same. said:

Oxycodone and oxycontin. Compare oxycontin to oxycodone. Oxycontin vs. oxycodone.

November 10, 2008 1:00 AM

Leave a Comment

(required)  
(optional)
(required)  
Add