Saturday, 23 March 2013

Cara Memasang Widget Google Translate Pada Blog


Widget ini berfungsi untuk menerjemahkan bahasa yang satu ke bahasa yang lain. Dengan memasang widget ini, maka pengunjung yang berasal dari negara lain juga bisa menikmati konten diblog anda. Selain itu, anda juga bisa memanfaatkan widget ini untuk belajar bahasa asing lho. Menarikkan?

Contohnya seperti ini yang dibuat oleh mad tomatoe








dan ini yang dibuat oleh kang rohman



Oleh sebab itu, pada postingan ini saya ingin membahas kembali dengan menyajikan widget buatan saya sendiri. Seperti yang dibawah ini








Widget ini saya buat dengan mengganti icon bendera yang berbentuk seperti pin dan diberi sedikit efek shadow sehingga hasilnya menjadi seperti diatas. Semoga tidak terlalu mengecewakan. sengihnampakgigi

Bagi anda yang tertarik, silahkan copy kode dibawah ini.

Untuk Google Translate 2 baris. Gunakan kode dibawah ini:







<style>
.translate img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
padding-left:0px;
}
.translate:hover img {
filter:alpha(opacity=50);
-moz-opacity: 0.50;
opacity: 0.50;
border:0;
}
</style>

<div style="text-align:center">
<a class="translate" href="#" target="_blank" rel="nofollow" title="English"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsDorhDg75uk2tl7_EFLU8ERB6XHkbTcLMmgWZ8HIErpE9BpkbS8iThj-n-DEzUIkWHkk-iXQ8R4PoTxE9G0vRP7tF9biSswOuDRz6-rr_t9dNjt2eIG68MyA1a-JtNJ-idGsLYA7umbdb/s144/uk-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="French"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9bI25T4NF0iz3Wft8yOgNY5pAM6aDjRcXNXmrwMyly06C-0_bSsmZUg6ESa9r7YoG18RMb0V376qw5Q7m79h-iWP5Sjl3pKsrQcRPgAMQSKcfz6AmDJSG-GsPoO-Am3gLBVXU_I3070Xx/s144/france-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="German"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbGUrw86s7CascsjgXrjTuSzb2Z9artbJf54xUXaGvsa1nM2D5-qe5jCumOjmrH8DPAICd1e7SVM0xbsqG0_or7HyL8gdgNszlZMFnCeQwl2U5X5v3yIUZ2YT2R9kVn56vohZIAnZP82z_/s144/german-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Spain"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFkiNhX399FHJ0xwsOELuQXpUiTQPOHWLp3CJ6cBj-qoEammP7-8rivVbUR0sxqJZlCZvrNoQy9iWTnlbTBELWsYnNtr92cmb8Z6fsC0ci-WZUN69gROt1X77pv8dpGHbWPgwZ6nF5o5Vn/s144/spain-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Italian"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguKvocAM81_HAFv9nIawLDJLDyWv_hz3csH2Njt6ajwrxkn8hnLq3-HrIDm_rRfd_Fk-dXkflFpd778uy_Ifn6-TwR_n5nmMV8lowQKkKXpwimuwaEoqMu8aNVLu1zR1nYtl5sewH-OcZn/s144/italy-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Dutch"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXOORV07bzuyduzoIJE7TXqaFGmCBU46lCa0jNgO0zFQ-IMAxI9kN3DKjkYLxZt5r8U-_1HJNcPKriTuIdPlErZV8l7sGztjwmd0PklXuX8cP8dWee3dAxRMVeZGib5x_khCRUpfBK5w1q/s144/dutch-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Russian"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0R0iL5c-I7zJtC14aG_W83UtzATz-m3c8KNfr75VhCiHHjM0MOPi3kSu-wn3TYJGq5NK3SjCjsyoAFkPpo891KgfXVhJm-Og-y_2__X5YMQ44tOAG_Udj2sFVzovYbYWZvCOy9Zc1-8BY/s144/russian-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Brazil"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img alt="Brazil" border="0" align="absbottom" title="Brazilian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4MpW0mmKckbWBKdBuCsNHjRrl12UFjSWesyrBhSpVm2PjiUX1c6YiXIKnadMiRTx_XrYduKzQw57JMH3TQ5UwWsjqeRuV9ZdGP_2hj_DqLMxf7dsr7uuM2PZf_rwUEuiRGdH2mvrx8L67/s144/brazil-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Japanese"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfAwFoZ6PHNU5KSFHQnYPHF81-Qu2MlXvWgXOK97irE5P6B6dvmyaybIopjDJLu5gMyJ2Ip-kyxNTqEjVKeu2ncbIKtvWi6iNMN6-U6xVgkaX6Wi50iwCbkeWIdWSB_vIPALm2rInEdJMh/s144/japan-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Korean"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHSqDQxVDzTMgM5xT_0gbClpQ14AmidoSnJcrEkl1cDczxf319AS_KOUsVrQDAmjVPgMUGpYamou6FI_L1moJSNMsbX41hQfl6PEFd9M0PznM3ni0fPSmSPsxobQxJPLEcWihh2l7IUlrR/s144/korean-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Arabic"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbmEF195D7ViFrBuk7AsTE49ZleZW2U3Eww5vHYn1WZkLwMMADXPszGESXO-ony0ZmlqP_PlijK97B_ZbEg1kzMK-HCs2yHOJ7Mehiu5nlTmq8f0IwE7x4JKNkfZdonMnGpBlBDOxxGxa/s144/arab-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Czh-CN&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicNhMGEyjeg2_falLxd7BY3kH9zuyLoj9zv4H7Ll1enCkx9EuTtCFA3vwblP3ZK8uQIqvWPtjGnSlh_fadSZGMFCje1v-cgM1PsnC1KJNfa7QmcV3ovwJ2afDK42HJEEzxHAKn2kGbCYD0/s144/china-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<div style="font-size:9px; padding:8px 0px 0px 0px">
<a href="http://fantasia-revolution.blogspot.com/2013/03/cara-memasang-widget-google-translate.html" target="_blank">Translate Widget</a> by Google
</div></div>


Untuk Google Translate 3 baris. Gunakan kode dibawah ini:

google translate widget









<style>
.translate img {
filter:alpha(opacity=100);
-moz-opacity: 1.0;
opacity: 1.0;
border:0;
padding-left:0px;
}
.translate:hover img {
filter:alpha(opacity=50);
-moz-opacity: 0.50;
opacity: 0.50;
border:0;
}
</style>

<div style="text-align:center">
<a class="translate" href="#" target="_blank" rel="nofollow" title="English"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsDorhDg75uk2tl7_EFLU8ERB6XHkbTcLMmgWZ8HIErpE9BpkbS8iThj-n-DEzUIkWHkk-iXQ8R4PoTxE9G0vRP7tF9biSswOuDRz6-rr_t9dNjt2eIG68MyA1a-JtNJ-idGsLYA7umbdb/s144/uk-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="French"onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9bI25T4NF0iz3Wft8yOgNY5pAM6aDjRcXNXmrwMyly06C-0_bSsmZUg6ESa9r7YoG18RMb0V376qw5Q7m79h-iWP5Sjl3pKsrQcRPgAMQSKcfz6AmDJSG-GsPoO-Am3gLBVXU_I3070Xx/s144/france-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="German" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjbGUrw86s7CascsjgXrjTuSzb2Z9artbJf54xUXaGvsa1nM2D5-qe5jCumOjmrH8DPAICd1e7SVM0xbsqG0_or7HyL8gdgNszlZMFnCeQwl2U5X5v3yIUZ2YT2R9kVn56vohZIAnZP82z_/s144/german-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Spain" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhFkiNhX399FHJ0xwsOELuQXpUiTQPOHWLp3CJ6cBj-qoEammP7-8rivVbUR0sxqJZlCZvrNoQy9iWTnlbTBELWsYnNtr92cmb8Z6fsC0ci-WZUN69gROt1X77pv8dpGHbWPgwZ6nF5o5Vn/s144/spain-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguKvocAM81_HAFv9nIawLDJLDyWv_hz3csH2Njt6ajwrxkn8hnLq3-HrIDm_rRfd_Fk-dXkflFpd778uy_Ifn6-TwR_n5nmMV8lowQKkKXpwimuwaEoqMu8aNVLu1zR1nYtl5sewH-OcZn/s144/italy-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Dutch" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXOORV07bzuyduzoIJE7TXqaFGmCBU46lCa0jNgO0zFQ-IMAxI9kN3DKjkYLxZt5r8U-_1HJNcPKriTuIdPlErZV8l7sGztjwmd0PklXuX8cP8dWee3dAxRMVeZGib5x_khCRUpfBK5w1q/s144/dutch-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Russian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg0R0iL5c-I7zJtC14aG_W83UtzATz-m3c8KNfr75VhCiHHjM0MOPi3kSu-wn3TYJGq5NK3SjCjsyoAFkPpo891KgfXVhJm-Og-y_2__X5YMQ44tOAG_Udj2sFVzovYbYWZvCOy9Zc1-8BY/s144/russian-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Brazil" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img alt="Brazil" border="0" align="absbottom" title="Brazilian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4MpW0mmKckbWBKdBuCsNHjRrl12UFjSWesyrBhSpVm2PjiUX1c6YiXIKnadMiRTx_XrYduKzQw57JMH3TQ5UwWsjqeRuV9ZdGP_2hj_DqLMxf7dsr7uuM2PZf_rwUEuiRGdH2mvrx8L67/s144/brazil-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br/><br/>
<a class="translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfAwFoZ6PHNU5KSFHQnYPHF81-Qu2MlXvWgXOK97irE5P6B6dvmyaybIopjDJLu5gMyJ2Ip-kyxNTqEjVKeu2ncbIKtvWi6iNMN6-U6xVgkaX6Wi50iwCbkeWIdWSB_vIPALm2rInEdJMh/s144/japan-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Korean" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHSqDQxVDzTMgM5xT_0gbClpQ14AmidoSnJcrEkl1cDczxf319AS_KOUsVrQDAmjVPgMUGpYamou6FI_L1moJSNMsbX41hQfl6PEFd9M0PznM3ni0fPSmSPsxobQxJPLEcWihh2l7IUlrR/s144/korean-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Arabic" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVbmEF195D7ViFrBuk7AsTE49ZleZW2U3Eww5vHYn1WZkLwMMADXPszGESXO-ony0ZmlqP_PlijK97B_ZbEg1kzMK-HCs2yHOJ7Mehiu5nlTmq8f0IwE7x4JKNkfZdonMnGpBlBDOxxGxa/s144/arab-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<a class="translate" href="#" target="_blank" rel="nofollow" title="Chinese Simplified" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Czh-CN&hl=en'); return false;"><img alt="Chinese Simplified" border="0" align="absbottom" title="Chinese Simplified" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicNhMGEyjeg2_falLxd7BY3kH9zuyLoj9zv4H7Ll1enCkx9EuTtCFA3vwblP3ZK8uQIqvWPtjGnSlh_fadSZGMFCje1v-cgM1PsnC1KJNfa7QmcV3ovwJ2afDK42HJEEzxHAKn2kGbCYD0/s144/china-flag.png" style="cursor: pointer;margin-right:8px" width="24"/></a>

<div style="font-size:9px; padding:8px 0px 0px 0px">
<a href="http://fantasia-revolution.blogspot.com/2013/03/cara-memasang-widget-google-translate.html" target="_blank">Translate Widget</a> by Google
</div></div>


1. Kalau sudah, buka kotak HTML/ javascript lalu pastekan kodenya kedalam kotak.

2. Klik Save. Selesai. Silahkan lihat hasilnya.


Jika anda merasa letaknya kurang pas dengan kolom sidebar anda. Anda bisa menyesuaikan jaraknya dengan mengganti nilai 0 pada padding-left. Semakin tinggi nilainya semakin lebar jaraknya. Dan jika anda ingin mengganti icon benderanya dengan icon lain. Silahkan ganti tulisan bewarna merah dengan alamat url icon anda.

Berlangganan artikel via email :

Delivered by SEO XT

Share On:

Related Post:

Belum ada komentar untuk "Cara Memasang Widget Google Translate Pada Blog"

Post a Comment

 
 
All Right Reserved - Fantasia Revolution
Design by SEO XT | Powered By Blogger.com