| |
TNO
Posts: 1064
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
Users of Firefox are no doubt familiar with the Copy Image Location command in their mouse Context Menu. This command allows you to copy the URL of an image to the clipboard so that you can later paste it in a forum, address bar or whatever else. Internet Explorer doesn't have this useful function. At least not yet... Heres how you can create it. Copy the following piece of code into Notepad and save it as a HTML file to any location. <script> var image = external.menuArguments.event.srcElement;clipboardData.setData("Text",image.src); </script> create a registry key to point to this file: 1. Start>Run>regedit 2. Navigate to HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt 3. Create a new sub-key and call it "Copy Image Location" (this is the text that appears in the menu) 4. Set the "(Default)" string value to the location of the html file we created 5. In the same key, create a new DWORD value called "Contexts" and give it a value of 2 (this means that the menu item appears only when you right click an image) Finally, close all browsers and reopen them. Voila, behold your new context menu extension. With a little imagination you can create just about any context item you want. vbscript/jscript/JavaScript and more. More info: http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/ext/tutorials/context.asp If you come up with any cool/useful context menu extensions, please post them.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|