- 性别
- 保密
- 个人主页
- 金币
- 0
- 积分
- 0
- 积分
- 62
- 精华
- 0
- 主题
- 7
- 帖子
- 18
- 阅读权限
- 10
- 注册时间
- 2010-4-27
- 经验
- 62
- 在线时间
- 3 小时
- 最后登录
- 2010-7-5
- UID
- 706874

- 金币
- 0
- 经验
- 62
- 精华
- 0
- 主题
- 7
- 帖子
- 18
|
 | |  |  | 本帖最后由 乐在人生 于 2010-8-20 09:59 编辑
在收藏夹加入收藏以下代码 - javascript:var t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/?text='+t+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;}else{location.href='http://translate.google.com.hk/translate?u='+escape(location.href)+'&hl=zh-CN&langpair=auto|zh-CN&tbb=1&ie='+e;};
复制代码 上面这个代码大家都是知道的 直接打开谷歌翻译页面进行翻译的
但是 效果确实不如意
现在我们可以尝试
把下面的弄到 收藏夹作为书签 - javascript:{d=document;b=d.body;o=d.createElement('scri'+'pt');o.setAttribute('src','http://translate.google.com.hk/translate_a/element.js?cb=googleTranslateElementInit');o.setAttribute('type','text/javascript');b.appendChild(o);v=b.insertBefore(d.createElement('div'),b.firstChild);v.id='google_translate_element';v.style.display='none';p=d.createElement('scri'+'pt');p.text='function%20googleTranslateElementInit(){new%20google.translate.TranslateElement({pageLanguage:%22%22},%22google_translate_element%22);}';p.setAttribute('type','text/javascript');b.appendChild(p);}void%200
复制代码
这个是效果图
相对来说这个翻译就要强上许多了
虽然没有在谷歌浏览器下那般完美 但是还算可以满足基本要求了
等完美的就需要等 浏览器支持插件了
| |  | |  |
|
-
总评分: 经验 + 22
查看全部评分
|