|
 |
|
ใส่ตัวแปลภาษาของ 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. แค่นีก็เสร็จสิ้นแล้วครับ สามารถใช้งานได้เลยครับ
Tag : PHP, MySQL, HTML/CSS, JavaScript, Ajax, jQuery

|
|
 |
 |
 |
 |
Date :
2010-12-13 12:53:12 |
By :
CodeTukyang |
View :
3724 |
Reply :
1 |
|
 |
 |
 |
 |
|
|
|
 |
 |
|
 |
 |
|
Load balance : Server 01
|