1

กระทู้: ใส่ตัวแปลภาษาของ Google Translate เพื่อแปลเนื้อหาในหน้าเป็นภาษาใดๆ

>> ดูตัวอย่างที่ http://www.codetukyang.com ครับ


1. นำ Code ด้านล่างไปไว้ในตำแหน่งที่ต้องการให้แสดงปุ่มแปลภาษาครับ ใน <body> นะครับ

<div id="google_translate_element"></div>
<script>
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'th',
includedLanguages: 'ko,zh-TW,zh-CN,ja,th,fr,ms,de,en'
}, 'google_translate_element');
}
</script><script src="http://translate.google.com/tr...?cb=googleTranslateElementInit "></script>


2. แค่นีก็เสร็จสิ้นแล้วครับ สามารถใช้งานได้เลยครับ

2

ตอบ: ใส่ตัวแปลภาษาของ Google Translate เพื่อแปลเนื้อหาในหน้าเป็นภาษาใดๆ

โอ้ว ขอบคุณมากๆ ค่ะ  smile