Sesuai dengan namanya. 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?
Sebenarnya google translate ini sudah pernah saya bahas pada beberapa waktu yang lalu. Namun karena widget ini sudah mengalami perubahan yaitu menggunakan icon-icon bendera sehingga tampilannya menjadi lebih menarik.
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.
Bagi anda yang tertarik, silahkan copy kode dibawah ini.
Untuk Google Translate 2 baris. Gunakan kode dibawah ini:
.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/AVvXsEim_WcVUe63iLTmPUMisDdYxJjjjxXz8iS3gIPskW1IN2mvZVS2XdrbKVERXWbTacNjXe1U5PNuUN1ZgkcD87izukAY-8qebM8H6KoABCst2bGpFix5ofnUbeLjJwizDQ5M6V3AFe_PhT9S/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/AVvXsEgkgMkhlmOBn6qUVNu5R7i-DgdFyUurOCAzQzfL_ql6OCQZRIdMm3XAarCLLZ4ghiGyqqKfCDlTdW351QgyY6Ufgym9Z4SOkDHCSwZJNfOazD77yRGtlyKVx2n5ltLLBUKknTO7I6b_m02h/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/AVvXsEgAI4a6lNnNRREuR5jh2TOgdBLH_vGxfc17ZSRZ3xtaCtdfbVfWQ0eXg_dfuHehzRAqSjzgqqirNVM699bUXSX-G4kuh9Lb9O3OOxoaLTyCjP8aj7_yf5gLTZZwXf8xVy9WWpDPm71QAEax/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/AVvXsEhasC_AO1h3pLcY2wpYQdIE7RMu3zCnT84L5B-7Mr8n73i3-cMW9NZHnUg6yyXRYFb7yGOGYC42zjrzfY-PCqVg5nVH8WrivS25T_V4GfeWaKPBzlTOG4CKLsIuqG5zv3q5M84LKb2AF5XJ/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/AVvXsEjLQEthfoNvHo-jJFl52DJpvWHbOEk-PDr6aFCz4Pdbi5jlV2lADVGy_vnoY1NE_1rQNUNgTHsU2F63JAvlCkx0NT7T_H72T8WyijGwYGg3pUZK3Ze1ulViRjz2FVvQPQ_H9uVgxDOYxW8f/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/AVvXsEgNKgNTSCPI2vOFsSDvjE6cek5KmuY-HZ609EMBIV_J8CBYj8lqHl2vmgIUEKpCSCjl-lINY-GHNHH8hrBet5XcpfMG7ZSZdWc06lnncOBeSdPu_PcSTfCwq7bKvfdok1lGVJyRJ8nlXgWa/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/AVvXsEgfsjW5ZQa-D-7lMOjZsC11cN6a8XHBa9BxIPTKMRCgFVkD72T0P1ldbOc2_EZIBvNqeAA58M9L40D3Yht_yExcmolDzefjKp_M2M9jZtDtAGL-WTlAbHdxmE6EnTvEI74hGcaU1MftPBZD/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/AVvXsEjTy4C8kJcXThb9rjiKMxBNwFa-t3W9dW2QvwqAEjpZbdJnBBQPLDWBiZ17g536wd7ywHXKA5rjRP6Izd35RDkyJza3A5KItmqUj0wa0uNN-TQa7ED97zb5esAN7sus-VB6LXaY0VZrldIJ/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/AVvXsEizGPQ6z9o3JCSzNkKdJwQKxup9krH6tgGP2g5EgCj6fdFCx1hXAcNwBbaFLjx_aE4CQ8-bfVivGs40ZK40jrNmKbC1mkQ3SwGb7Un6tw99Nr_e4xvsd-FOUSLeJWrPEMI2uYUoGgw22SOE/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/AVvXsEhA0ha3hyAtGJol1n-6x58f70BCeIpx4eQsy-aRG5slYKb2ZG0R0K-I3nA9yjbxb81YkxoxDDuYQbCEmHCeZ_BpLo4rnu2vhyphenhyphenSb7BGLIoM_2cF-5Veu69bFhY4oO6s82chXubaXscED2dNF/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/AVvXsEgVElD2Iqf4EKPMK2guANXQUf1uJxxJiitGKFkChuAweTRDqCB_BeFb54ocrpBvPoFsai5EVkLajfoAQttrS44_4uHp1lsHJqymXICZ5OADuNodR_x2TSZQQYtoYM1d40UMStJU7n9uAbox/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/AVvXsEgvn9cNX13FgzVr8eMnN7An_-TiM7ZH02hegQPVJyjRAccR6nea9heBUw9JP8ayxi4zY70xha0khxlzWDpRZApQ_BLavOjkMrlYMUU6QAv_JeLc1h2WkbVR872GzNiymR3zZ_17LRRa4n4C/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://www.hermanblog.com/2009/03/memasang-widget-google-translate-pada.html" target="_blank">Translate Widget</a> by Google
</div></div>
Untuk Google Translate 3 baris. Gunakan kode dibawah ini:
.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/AVvXsEim_WcVUe63iLTmPUMisDdYxJjjjxXz8iS3gIPskW1IN2mvZVS2XdrbKVERXWbTacNjXe1U5PNuUN1ZgkcD87izukAY-8qebM8H6KoABCst2bGpFix5ofnUbeLjJwizDQ5M6V3AFe_PhT9S/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/AVvXsEgkgMkhlmOBn6qUVNu5R7i-DgdFyUurOCAzQzfL_ql6OCQZRIdMm3XAarCLLZ4ghiGyqqKfCDlTdW351QgyY6Ufgym9Z4SOkDHCSwZJNfOazD77yRGtlyKVx2n5ltLLBUKknTO7I6b_m02h/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/AVvXsEgAI4a6lNnNRREuR5jh2TOgdBLH_vGxfc17ZSRZ3xtaCtdfbVfWQ0eXg_dfuHehzRAqSjzgqqirNVM699bUXSX-G4kuh9Lb9O3OOxoaLTyCjP8aj7_yf5gLTZZwXf8xVy9WWpDPm71QAEax/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/AVvXsEhasC_AO1h3pLcY2wpYQdIE7RMu3zCnT84L5B-7Mr8n73i3-cMW9NZHnUg6yyXRYFb7yGOGYC42zjrzfY-PCqVg5nVH8WrivS25T_V4GfeWaKPBzlTOG4CKLsIuqG5zv3q5M84LKb2AF5XJ/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/AVvXsEjLQEthfoNvHo-jJFl52DJpvWHbOEk-PDr6aFCz4Pdbi5jlV2lADVGy_vnoY1NE_1rQNUNgTHsU2F63JAvlCkx0NT7T_H72T8WyijGwYGg3pUZK3Ze1ulViRjz2FVvQPQ_H9uVgxDOYxW8f/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/AVvXsEgNKgNTSCPI2vOFsSDvjE6cek5KmuY-HZ609EMBIV_J8CBYj8lqHl2vmgIUEKpCSCjl-lINY-GHNHH8hrBet5XcpfMG7ZSZdWc06lnncOBeSdPu_PcSTfCwq7bKvfdok1lGVJyRJ8nlXgWa/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/AVvXsEgfsjW5ZQa-D-7lMOjZsC11cN6a8XHBa9BxIPTKMRCgFVkD72T0P1ldbOc2_EZIBvNqeAA58M9L40D3Yht_yExcmolDzefjKp_M2M9jZtDtAGL-WTlAbHdxmE6EnTvEI74hGcaU1MftPBZD/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/AVvXsEjTy4C8kJcXThb9rjiKMxBNwFa-t3W9dW2QvwqAEjpZbdJnBBQPLDWBiZ17g536wd7ywHXKA5rjRP6Izd35RDkyJza3A5KItmqUj0wa0uNN-TQa7ED97zb5esAN7sus-VB6LXaY0VZrldIJ/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/AVvXsEizGPQ6z9o3JCSzNkKdJwQKxup9krH6tgGP2g5EgCj6fdFCx1hXAcNwBbaFLjx_aE4CQ8-bfVivGs40ZK40jrNmKbC1mkQ3SwGb7Un6tw99Nr_e4xvsd-FOUSLeJWrPEMI2uYUoGgw22SOE/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/AVvXsEhA0ha3hyAtGJol1n-6x58f70BCeIpx4eQsy-aRG5slYKb2ZG0R0K-I3nA9yjbxb81YkxoxDDuYQbCEmHCeZ_BpLo4rnu2vhyphenhyphenSb7BGLIoM_2cF-5Veu69bFhY4oO6s82chXubaXscED2dNF/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/AVvXsEgVElD2Iqf4EKPMK2guANXQUf1uJxxJiitGKFkChuAweTRDqCB_BeFb54ocrpBvPoFsai5EVkLajfoAQttrS44_4uHp1lsHJqymXICZ5OADuNodR_x2TSZQQYtoYM1d40UMStJU7n9uAbox/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/AVvXsEgvn9cNX13FgzVr8eMnN7An_-TiM7ZH02hegQPVJyjRAccR6nea9heBUw9JP8ayxi4zY70xha0khxlzWDpRZApQ_BLavOjkMrlYMUU6QAv_JeLc1h2WkbVR872GzNiymR3zZ_17LRRa4n4C/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://www.hermanblog.com/2009/03/memasang-widget-google-translate-pada.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.
Selamat mencoba. Semoga bermanfaat..
1 comments:
waduh bro... itu tips yg bagian bawah kok warnanya biru gelap... :(
tak terlihat oleh 'mata tua'ku... hikz
Post a Comment