1利用連結
http://translate.google.com/translate?client=tmpg&hl=zh-TW&u=http://tw.yahoo.com/
後方http://tw.yahoo.com/為要翻譯的網頁
2.利用google 簽入code
頁首
<meta name="google-translate-customization" content="7a1ffe9273ce1766-841c80abe9826223-geffce814385c4757-1e"></meta>
body
<div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'zh-TW',
includedLanguages: 'en,ja,ko,zh-CN,zh-TW'}, 'google_translate_element');
}
</script><script
type="text/javascript"
src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
範例:
<meta name="google-translate-customization" content="7a1ffe9273ce1766-841c80abe9826223-geffce814385c4757-1e"></meta>
<html>
<head>
<title>Translate API Example</title>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>test 測試 hello<br>i love you <br>我愛你 </td>
<td><div id="google_translate_element"></div><script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({pageLanguage: 'zh-TW',
includedLanguages: 'en,ja,ko,zh-CN,zh-TW'}, 'google_translate_element');
}
</script><script
type="text/javascript"
src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
</td>
</tr>
</table>
</body>
</html>