星际译王项目组资源下载列表:http://code.google.com/p/stardict-3/downloads/list
星际译王select&translate how to 即时翻译:http://www.stardict.cn/selectandtrans.php
怎样在其他网页上使用“即时翻译”? 收藏下面的这个代码,或者直接把它拖到您的工具栏: 然后打开任意网页,并且点击工具栏上的StarDict链接。 |
How to add "Select and Translate" in your website? Put these codes in your website:
You can add "dict_username" and "dict_md5passwd" into this script, so you can use custom dictionaries. eg. |
Enable translate opinion: If you want to show a "Enable translate opinion" in your webpage, put these codes in suitable place:
|
* If you want to disable "Select and Translate" by default, add dict_enable=false; before dictInit(); |
Provide Dictionary Lookup Service in your website.
Insert these codes in your web page: | Preview: |
| |
* You may need to change "UTF-8" to the charset that you are using in your web page. |
由于CSDN的编辑器中不能直接使用javascript(在编辑阶段会被直接过滤,不知CSS会否),所以没有在次页面实现即时翻译。
这个功能其实可以拓展为在网页中添加google custom search,同样的道理。