当前位置:首页 >> 网页制作

两款网站页面翻译插件分享

TranslateThis网址:http://translateth.is

Google翻译网址:http://translate.google.cn/translate_tools?hl=zh-CN&sl=zh-CN

Translate

复制代码代码如下:
<div id="google_translate_element"></div><script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'zh-CN',
layout: google.translate.TranslateElement.InlineLayout.SIMPLE
}, 'google_translate_element');
}
</script><script src="/UploadFiles/2021-03-30/element.js?cb=googleTranslateElementInit">

复制代码代码如下:
<!-- Begin TranslateThis Button -->
<div id="translate-this"><a href="http://translateth.is/" class="translate-this-button">Translate</a></div>
<script type="text/javascript" src="/UploadFiles/2021-03-30/jsapi"><script type="text/javascript" src="/UploadFiles/2021-03-30/translate-this.js"><script type="text/javascript">
TranslateThis();
</script>
<!-- End TranslateThis Button -->