Foto

Minggu, 03 April 2011

Cara Memasang Widget Translator di Blogspot | Google Translate Widget

Cara Memasang Widget Translator di Blogspot | Google Translate Widget - Ada yang baru di blog ini. Yaitu widget translator (di pojok kanan atas dekat gambar Mbak Miyabi yang cantik). Widget milik Google itu lumayanlah buat memanjakan pengunjung dari luar negeri. Meski, hasil terjemahan kadang lucu (karena Google translate memang tidak 100 persen akurat, terutama menerjemahkan kata-kata yang kurang familiar).

Cara memasangnya? Gampang.

1. Masuk ’Tata Letak’

2. Klik ’Tambah widget’

3. Pilih HTML/Java Script

4. Masukkan kode ini:
<a href="javascript:var t=((window.getSelection&amp;&amp;window.getSelection())||(document.getSelection&amp;&amp;document.getSelection())||(document.selection&amp;&amp;document.selection.createRange&amp;&amp;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&amp;hl=en&amp;langpair=auto|en&amp;tbb=1&amp;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&amp;hl=en&amp;langpair=auto|en&amp;tbb=1&amp;ie='+e;};" onclick="alert(document.getElementById('instructions').firstChild.nodeValue);return false;">
English</a>

5. Simpan

6. Selesai

Bagaimana jika ingin ditambahi translator bahasa lainnya?
Tambahkan kode ini dibawahnya:

Jepang:

<a href="javascript:var t=((window.getSelection&amp;&amp;window.getSelection())||(document.getSelection&amp;&amp;document.getSelection())||(document.selection&amp;&amp;document.selection.createRange&amp;&amp;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&amp;hl=en&amp;langpair=auto|ja&amp;tbb=1&amp;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&amp;hl=en&amp;langpair=auto|ja&amp;tbb=1&amp;ie='+e;};" onclick="alert(document.getElementById('instructions').firstChild.nodeValue);return false;">
Japanese</a>

Arab:

<a href="javascript:var t=((window.getSelection&amp;&amp;window.getSelection())||(document.getSelection&amp;&amp;document.getSelection())||(document.selection&amp;&amp;document.selection.createRange&amp;&amp;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&amp;hl=en&amp;langpair=auto|ar&amp;tbb=1&amp;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&amp;hl=en&amp;langpair=auto|ar&amp;tbb=1&amp;ie='+e;};" onclick="alert(document.getElementById('instructions').firstChild.nodeValue);return false;">
Arabic</a>

Prancis:

lt;a href="javascript:var t=((window.getSelection&amp;&amp;window.getSelection())||(document.getSelection&amp;&amp;document.getSelection())||(document.selection&amp;&amp;document.selection.createRange&amp;&amp;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&amp;hl=en&amp;langpair=auto|fr&amp;tbb=1&amp;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&amp;hl=en&amp;langpair=auto|fr&amp;tbb=1&amp;ie='+e;};" onclick="alert(document.getElementById('instructions').firstChild.nodeValue);return false;">
French</a>

Jerman:

<a href="javascript:var t=((window.getSelection&amp;&amp;window.getSelection())||(document.getSelection&amp;&amp;document.getSelection())||(document.selection&amp;&amp;document.selection.createRange&amp;&amp;document.selection.createRange().text));var e=(document.charset||document.characterSet);if(t!=''){location.href='http://translate.google.com/translate_t?text='+t+'&amp;hl=en&amp;langpair=auto|de&amp;tbb=1&amp;ie='+e;}else{location.href='http://translate.google.com/translate?u='+escape(location.href)+'&amp;hl=en&amp;langpair=auto|de&amp;tbb=1&amp;ie='+e;};" onclick="alert(document.getElementById('instructions').firstChild.nodeValue);return false;">
German</a>

Note: untuk pemisah di antara kode satu dengan lainnya, anda bisa tambahkan kode | atau * dsb, 

http://blogspotcorner.blogspot.com/2010/02/cara-memasang-widget-translator-di.html

Tidak ada komentar:

Posting Komentar