- UID
- 107339
- 帖子
- 4411
- 精华
- 0
- 贡献
- 0
- 推广
- 0
- 有效BUG
- 0
- 注册时间
- 2008-4-15
|
右键添加复制图片链接地址!!
---------------------------------------------------------------------------------------------------------------
打开记事本,输入:
[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,选择 安装。
|
|
|