论坛首页 海阔天空论坛

给Firefox加入一个Dict的词典按钮

浏览 2690 次
精华帖 (0) :: 良好帖 (0) :: 灌水帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-08-07  
其实很简单,首先:菜单“查看/Add New Button”建一个新按钮,如下添入
1、先装这个插件
2、代码如下
/*Code*/
var  element=content.document.createElement('script');
element.setAttribute('src', 'http://dict.cn/hc/init.php');
content.document.body.appendChild(element);
3、图片如下
data:image/x-icon;base64,AAABAAEAEBAAAAAAAABoBQAAFgAAACgAAAAQAAAAIAAAAAEACAAAAAAAQAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAA%2F%2F%2F%2FANWUIgCko5wAbk8YAP7ZlQCCdV0A8rpYANrY1QCkcxwAy6RgALWLPgD85r4A86wuAOK9fACKbTcAvriqAI2HeQBtWzsA%2B%2FLeANKcPQD6y3cA1Mu9AOrWsgBZQRcAvYcnAIBVCgDp5uAAfGpHAIZjJQDusUYAm3c3AOSfKACsfSkA9c2IAPPBaAD%2B%2BO4AwbOaAGxUKADm3MoA%2BN2sAIp%2BZgCYaxsAeWxVAHdXHwDy4cUA6Kg0AMaKHgD4uEkA9fHpAPKvOgCGcUcA%2BdigAK96HgDrx4cA%2BPj4AOHg2gDYmisA%2B%2BnIAPPFcgDZuHoA8LZPAN%2BgMACgbRYA%2FNGEAOynLAD44bgA7uvlAMaLJgD0yXwA8L1iAHxxWwDemyYA%2FPTlAP789wCxfiQAq3YaAPbAYgDwrDUA1pYnAIBtRQDwtEoA88NtAIlqMwDopCsA9%2Fb0AP326QD547wA%2Bd%2BwAMGJJgDtqTAA8bhTAN3b1gD13K8A%2BO%2FeANqaJwDsqjQA%2Ff38APjgtAD30IoA%2BLdFAPv6%2BQDj28wAxIkhANKTJADxqzEA87hOAPbCZgD%2B%2BvQAmHc5APXFbwDi4d0A3ZwpAPO%2FYwDyrjYA76kuAPCzRgD0vFgA%2FPPgAPrlvwDTlCYA4JwlAPSwOQD%2F%2Fv0A%2Fv36AP369g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AAIAPAACAAwAAgAMAAMABAADgwAAA4MAAAMDAAADAwAAAwMAAAMDAAADAwAAAwAAAAIABAACAAwAAgAcAAIA%2FAAA%3D
4、名称当然自己起,就叫Dict吧

建好之后的按钮在 “定制工具栏里” 睡觉。在导航栏右击鼠标,选择定制就找到了。
再吗,就是把蓝色的“D”拖到要放的工具栏上就OK了。
用的时候,要当前页面javascript可用,然后点击这个按钮,再然后就可以划记搜索,查询英语单词了

  • 大小: 28.3 KB
论坛首页 海阔天空版

跳转论坛:
Global site tag (gtag.js) - Google Analytics