首先打开记事本,输入如下代码。
[Version]
Signature="$Chicago$"
Provider="MetaBuilders"
[DestinationDirs]
DefaultDestDir=10,"web"
[DefaultInstall]
AddReg=CopyImageUrl_AddReg
CopyFiles=CopyImageUrl_CopyFiles
[CopyImageUrl_CopyFiles]
CopyImageUrl.html
[CopyImageUrl_AddReg]
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\复制当前图片地址",,0x00000000,"%10%\web\CopyImageUrl.html"
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\复制当前图片地址","contexts",1,02
然后另存为CopyImageUrl.inf。
然后同样打开记事本,输入如下代码。
<SCRIPT LANGUAGE="JavaScript" defer>
var parentWin = external.menuArguments;
var srcEvent = external.menuArguments.event;
var doc = parentWin.document;
var eventElement = doc.elementFromPoint ( srcEvent.clientX, srcEvent.clientY );
var cpb = parentWin.clipboardData;
var srcImage = eventElement;
var str = new String(srcImage.href.toString());
str = + str +
cpb.setData("Text",str.toString());
</SCRIPT>
另存为CopyImageUrl.html。
然后右键点CopyImageUrl.inf,选择安装。
关闭浏览器重新打开即可。
[Version]
Signature="$Chicago$"
Provider="MetaBuilders"
[DestinationDirs]
DefaultDestDir=10,"web"
[DefaultInstall]
AddReg=CopyImageUrl_AddReg
CopyFiles=CopyImageUrl_CopyFiles
[CopyImageUrl_CopyFiles]
CopyImageUrl.html
[CopyImageUrl_AddReg]
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\复制当前图片地址",,0x00000000,"%10%\web\CopyImageUrl.html"
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\复制当前图片地址","contexts",1,02
然后另存为CopyImageUrl.inf。
然后同样打开记事本,输入如下代码。
<SCRIPT LANGUAGE="JavaScript" defer>
var parentWin = external.menuArguments;
var srcEvent = external.menuArguments.event;
var doc = parentWin.document;
var eventElement = doc.elementFromPoint ( srcEvent.clientX, srcEvent.clientY );
var cpb = parentWin.clipboardData;
var srcImage = eventElement;
var str = new String(srcImage.href.toString());
str = + str +
cpb.setData("Text",str.toString());
</SCRIPT>
另存为CopyImageUrl.html。
然后右键点CopyImageUrl.inf,选择安装。
关闭浏览器重新打开即可。