本站不兼容 8 以前的版本的 Interner Explorer 浏览器(或基于这些版本的 IE 的其他浏览器),并且页面样式不完全兼容 IE 8,我们建议你升级至 IE 9 或改用其他非 IE 浏览器

Mozest™

  • 正在加载用户菜单…

开放、分享、互助

转播到腾讯微博
返回列表 回复 发帖

[求助] iciba页面的划词翻译怎么做成书签?

http://www.iciba.com/a/
鼠标滑选一个单词 出现一个 "译" 点击就翻译了,
以前有google翻译什么的 就是做成一个书签,网页有什么需要翻译的,一点就行,
这个iciba的翻译也能做成书签吗
  1. javascript:var%20ICIBA_HUAYI_ALLOW=1,iciba_huaci_url=%22http://open.iciba.com/huaci/%22;void%20function(){if(!document.getElementById(%22icIBahyI-yi%22)){var%20a=document.createElement(%22div%22);a.id=%22icIBahyI-yi%22,a.style.display=%22none%22,a.style.zIndex=%224294967295%22,document.body.insertBefore(a,document.body.firstChild);var%20i=document.createElement(%22div%22);i.id=%22icIBahyI-main_box%22,i.style.display=%22none%22,document.body.insertBefore(i,document.body.firstChild);var%20e='%3Clink%20type=%22text/css%22%20rel=%22stylesheet%22%20href=%22'+iciba_huaci_url+'mini.css%22%20/%3E%3Cobject%20style=%22height:0px;width:0px;overflow:hidden;%22%20classid=%22clsid:d27cdb6e-ae6d-11cf-96b8-444553540000%22%20codebase=%22http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab%23version=6,0,0,0%22%20width=%220%22%20height=%220%22%20id=%22asound_hanci%22%20align=%22absmiddle%22%3E%3Cparam%20name=%22allowScriptAccess%22%20value=%22always%22%20/%3E%3Cparam%20name=%22movie%22%20value=%22http://www.iciba.com/top/asound.swf%22%20/%3E%3Cparam%20name=%22quality%22%20value=%22high%22%20/%3E%3Cembed%20src=%22http://www.iciba.com/top/asound.swf%22%20quality=%22high%22%20width=%220%22%20height=%220%22%20name=%22asound_hanci%22%20align=%22absmiddle%22%20allowScriptAccess=%22always%22%20type=%22application/x-shockwave-flash%22%20pluginspage=%22http://www.macromedia.com/go/getflashplayer%22%20/%3E%3C/object%3E%3Cdiv%20class=%22icIBahyI-main_title%22%20id=%22icIBahyI-main_title%22%20%3E%3Ca%20href=%22javascript:;%22%20id=%22icIBahyI-gb%22%20class=%22icIBahyI-gb%22%20title=%22关闭%22%3E%3C/a%3E%3Ca%20href=%22javascript:;%22%20id=%22icIBahyI-dq%22%20class=%22icIBahyI-dq2%22%20title=%22点击固定结果%22%3E%3C/a%3E爱词霸%20即划即译%3Cdiv%20class=%22icIBahyI-sz_list%22%20id=%22icIBahyI-sz_list%22%3E%3Ca%20href=%22javascript:;%22%3E关闭即划即译%3C/a%3E%3Ca%20href=%22%23%22%20target=%22_blank%22%3E反馈%3C/a%3E%3Ca%20href=%22%23%22%20style=%22border:none;%22%20target=%22_blank%22%3E帮助%3C/a%3E%3Cspan%20class=%22icIBahyI-j%20icIBahyI-tl%22%3E%3C/span%3E%3Cspan%20class=%22icIBahyI-j%20icIBahyI-tr%22%3E%3C/span%3E%3Cspan%20class=%22icIBahyI-j%20icIBahyI-bl%22%3E%3C/span%3E%3Cspan%20class=%22icIBahyI-j%20icIBahyI-br%22%3E%3C/span%3E%3C/div%3E%3C/div%3E%3Cdiv%20class=%22icIBahyI-search%22%3E%3Cinput%20id=%22ICIBA_HUAYI_input%22%20name=%22%22%20type=%22text%22%20onkeydown=%22ICIBA_HUAYI_KEYDOWN(event);%22%3E%3Ca%20href=%22javascript:;%22%20class=%22icIBahyI-sear%22%20onclick=%22ICIBA_HUAYI_searchword()%22%20%3E查%20词%3C/a%3E%3C/div%3E%3Cspan%20class=%22icIBahyI-contTop%22%3E%3C/span%3E%3Cdiv%20class=%22icIBahyI-loading%22%20id=%22loading%22%3E%3C/div%3E%3Cdiv%20class=%22icIBahyI-main_cont%22%20id=%22icIBahyI-main_cont%22%3E%3C/div%3E%3Cdiv%20class=%22icIBahyI-CB%22%20id=%22icIBahyI-scbiframe%22%20style=%22display:none%22%3E%3C/div%3E%3Cdiv%20id=%22ICIBA_TOO_LONG%22%20style=%22height:150px%22%20class=%22icIBahyI-footer%22%3E您划取的内容太长,建议您去爱词霸%3Ca%20href=%22http://fy.iciba.com%22%3E翻译%3C/a%3E页面。%3C/div%3E%3Cspan%20class=%22icIBahyI-contB%22%3E%3C/span%3E';document.getElementById(%22icIBahyI-main_box%22).innerHTML=e;var%20c=document.createElement(%22script%22);c.setAttribute(%22src%22,iciba_huaci_url+%22dict.php%22),document.body.appendChild(c);var%20i=document.createElement(%22div%22);i.id=%22icIBahyI-USER_LOGIN%22,i.className=%22icIBahyI-USER_LOGIN%22,i.style.display=%22none%22,document.body.insertBefore(i,document.body.firstChild);var%20t=document.createElement(%22script%22);t.setAttribute(%22src%22,iciba_huaci_url+%22ICIBA_HUACI_COM.js%22),document.body.appendChild(t)}}();
复制代码
1

评分次数

  • yuica

2# Eric

不错,收藏
2# Eric .

牛!超喜欢,可以干掉一个扩展了!
2# Eric
我发现一个问题,这个小书签,双击就直接出翻译了,用鼠标选中,就会出现“译”字,但是为什么有的页面滑选后,会不出现“译”字?比如贴吧、糗百、暴走漫画之类的,必须要双击才可以翻译。
5# yuzhiboxiu
代码更新了下,现在没问题了,重新复制吧。
不出现“译”字是因为被页面其它元素挡住了,现在我把zIndex设了很大的值,应该不会有什么网站变态到比这还大的了……
2# Eric
小书签方便,需要才点击。感谢分享
6# Eric

非常感谢!测试可用!
本帖最后由 yuica 于 2014-8-12 08:51 编辑

2# Eric
非常感谢,,verygood ~~~~~~~~~~~~~~~~~~~
问一下,可不可以写一个css 或者uc.js什么的,让打开某个特定网站自动运行这个java代码,这样我去这个网站就不用每次都点击书签了
例如这个网站http://neo-geo.com/forums/
好东西,原来用的鼠标手势google翻译,时灵时不灵,这个好用
9# yuica

可以实现。过两天吧,到时候自己加白名单就行了。
1

评分次数

  • yuica

1# yuica
http://j.mozest.com/zh-CN/userscript/script/122/
Eric 发表于 2014-8-15 05:59
谢谢分享了
查词典




Dict.cn 海词 - 划词释义

已开启划词
设置

悬停发音即划即查
怎么的海词的翻译总是在回帖的时候显示?
必应的搜索结果也有这个,叫屏幕取词,谁能弄一个?
S3.Google Translator
可以试试这个