| www.StarDict.cn | 注册 登录 | |
| 怎样在其他网页上使用“即时翻译”? 收藏下面的这个链接,或者直接把它拖到您的工具栏: StarDict Notice: You are guest user, you'd better login first, so this link will contain your user info and you can use your custom dictionaries by it. 然后打开任意网页,并且点击工具栏上的StarDict链接。 |
| How to add "Select and Translate" in your website? Put these codes in your website: <script src="http://www.stardict.cn/js/stardict.js" type="text/javascript"></script> <script type="text/javascript"> dictInit(); </script> You can add "dict_username" and "dict_md5passwd" into this script, so you can use custom dictionaries. |
| Enable translate opinion: If you want to show a "Enable translate opinion" in your webpage, put these codes in suitable place: <span id="dict_status"></span> |
| * If you want to disable "Select and Translate" by default, add dict_enable=false; before dictInit(); |
| Insert these codes in your web page: | Preview: |
<form method="post" target="_blank" | |
| * You may need to change "UTF-8" to the charset that you are using in your web page. | |