SearchText.html:
<HTML> 
<HEAD> 
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 
</HEAD> 
<BODY> 
<script language="JavaScript"> 
try{ 
var win=external.menuArguments; 
var Doc=win.document; 
var Sel=Doc.selection; 
var SelRange=Sel.createRange(); 
var selectText=SelRange.text; 
}catch(x){}
//你用google就把第一句屏蔽掉,用baidu就把第二句屏蔽掉。
//(我习惯用google,所以在第一句前加//)    By Slore
//window.location="http://www.baidu.com/s?wd="+selectText+"&cl=3";
window.location="http://www.google.cn/search?complete=1&hl=zh-CN&q="+selectText+"&meta=";
</script> 
</BODY> 
</HTML>
安装文件inf(当然可以P写就是复制和修改注册表):
Signature="$Chicago$"
DefaultDestDir=12,"web"
AddReg=SearchText_AddReg
CopyFiles=SearchText_CopyFiles
SearchText.html
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\搜索所选内容(&S)",,0x00000000,"%12%\web\SearchText.html"
HKCU,"Software\Microsoft\Internet Explorer\MenuExt\搜索所选内容(&S)","contexts",0x00010001,50
;;;;;;;--------------------------------------------------------
;-- Only localize strings below this line
;-- This SearchText Setup Inf Made By SLore
;;;;;;--------------------------------------------------------
 Last edited by slore on 2007-2-26 at 03:48 PM ]