Wednesday, April 4, 2012

Cara Pasang Widget Google Translate Pada Blog

By. Dedi Yahya S

Pada kesempatan kali ini saya akan memberikan trik dan panduan tentang Cara untuk membuat widget google translate pada blogspot.
Contohnya seperti ini :
Cara Pasang Widget Google Translate pada Blogspot 
  • Login pada Blogger 
  • Setelah berada di Dashbore 
  • Masuk mode Rancangan 
  • Pada Elemen Laman
  • Pilih Tambah Gadget
  • Pilih HTML/Javascript
  • Masukan kode berikut.
Untuk Google Translate 2 baris, gunakan kode 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/AVvXsEgleEpdJ_aGqVLugzBAT1oTgK1itaIKULkfcDSyzm0_cQJBMa_9pRsdZWT28AE9L37QS2dlyO5kFBTvXGfPO07ieLArhRBbxqbsG4Ua7jnnv9LSGZSsoJjlVQBXi8N8h-TmeTt-IHYnRGIx/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/AVvXsEjX-BCZzDI7HJNPv-o4P0RfWmMlElKSRc22dXv9krkNLXDtaIEwk7SFzF4KBXWMoI77P07c150MQaouIpY4ChKtHCIq4jDX6kkFH0k0ofldUTVaT3bkWhN9jnPbvaTkp6pOcq41JXAJEjvM/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/AVvXsEhzZ5meh0Sl7kEm-ACXjFlOfwkz9IdM_E23oKJ5Rz1DLnYkyJjwQlLknVKmeXVEwRs9XTCIQOEkfXymPIO5PJlNCfujppS8W7gzucU44kKFp9jm_ez6g2zkRG1-ctBiHdZPlsVIdBS_zqsj/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/AVvXsEjWcwb7JCRy2f217RVc7NFXo3SrVMEpX9RRx0h_kYYPZmdZ2bD3_qx_csSYeIzugYlI_CIvxS35IMFSfBfXJb-QphbZGp_vEUv05aBOiJY2yhDfgQbeHBytqO0wxC8AKapDXGBauq32al0J/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/AVvXsEjt619iQc7ajx2I-JpqRlndFnAj1bnqk9cuGR8mG98IZ9SWZ-vklCTlqoM4v2pNWcEyVO7jYYuUVIwJKaViAP0-ViEQm85_Kuvq7GnUC7rR5FLXao1Apa56fIZsUg-b2ytZcJv6zrBFqT4r/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/AVvXsEiRJdRjkLiugEfo9VejkPt0VoATe2neqYdTyFzwjLLwBRHNbYb2QvIIuG9_j0r5N2s_kJEQH8QhJDMz0Z9wMcStOALF1TFLmPTrR6UXXRtKTVO_aFVsBUBEj9xdJgdH0x8I71bCqsmOWhO0/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/AVvXsEidPaoHFkv9weElgR11x2U6msnTRFwm7_fwzKIq_fAV3Q51-YsVpKGWIvka5siD_TVsoZ0QulROQsVOljw0SMC6xDS9qmjfgS1xRQ30KFe7gEx_LYFC3Jd1Sw9zJ2tJcLrxVOiLwwrbrxgR/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/AVvXsEgTK7777JK0Z2svnigVAU4IiNE2f8UQIYSCgxZ5ZV8yFHLANoaeg45d4CmDupcZzN4OP9zJQS1Q1-kgpE4RdTVMXRA2eAu3bEtIaT5bGli2FnDJdIBXRujxfmEY6vMttXXIJuYLSoTXGePC/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/AVvXsEj-pb5sceiSuWhhxbFJmkICbOgP1yj88LTRvT45aMqGV5DHiUJRgqsG0xJKX8YBE8tNila0N_ocukuO7fpslO1ht7peDo66FBatmFg8nMzcPJkIyI70KtX2U9FKzJsFfAX0uG_5NJr3Trc-/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/AVvXsEj_xeJ0dvBSoLXfzL2E7kCgm0igP9h1lx0HRVIC5ykU-gSQ-KVQWT3uPCyQHtyRc1wFYBYv6YXxtu5OKVLE3VZImy4PeDh9btlFfnadvm-xQFjnUwdCQb2IVmYfxYc8Tzi6YFxhkOJJnz2z/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/AVvXsEiIa4fq2O2lcLkVEE5AUJxJca088EL2F5VIN1z-SF-kpvLJy2U92WI1z7jTUy-N4jrromQ5VIGPyoJ76jjLGyA80zcmokrCeLX-BZ9pk2YGF-HyOiOzMVmQCQ5AzGRd9LH5RLIoN3HrUs1T/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/AVvXsEiOrqrMLtkoAEIwQhZkOHJaN8cNPH3s9gTgzMMqF3rSzvR-Tn-0k0Km6VJ77sl2ENP7CXIwte6J_9c9uBlmrc9B8eu13Wsjd-URBDUAffrqYJjULfNmrzihFYn4ovUMGOmCZB9dN1o_D-AE/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://blogtutorials-01.blogspot.com/2012/04/cara-pasang-widget-google-translate.html" target="_blank">Translate Widget</a> by Google
</div></div>


Untuk Google Translate 3 baris, gunakan kode 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/AVvXsEgleEpdJ_aGqVLugzBAT1oTgK1itaIKULkfcDSyzm0_cQJBMa_9pRsdZWT28AE9L37QS2dlyO5kFBTvXGfPO07ieLArhRBbxqbsG4Ua7jnnv9LSGZSsoJjlVQBXi8N8h-TmeTt-IHYnRGIx/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/AVvXsEjX-BCZzDI7HJNPv-o4P0RfWmMlElKSRc22dXv9krkNLXDtaIEwk7SFzF4KBXWMoI77P07c150MQaouIpY4ChKtHCIq4jDX6kkFH0k0ofldUTVaT3bkWhN9jnPbvaTkp6pOcq41JXAJEjvM/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/AVvXsEhzZ5meh0Sl7kEm-ACXjFlOfwkz9IdM_E23oKJ5Rz1DLnYkyJjwQlLknVKmeXVEwRs9XTCIQOEkfXymPIO5PJlNCfujppS8W7gzucU44kKFp9jm_ez6g2zkRG1-ctBiHdZPlsVIdBS_zqsj/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/AVvXsEjWcwb7JCRy2f217RVc7NFXo3SrVMEpX9RRx0h_kYYPZmdZ2bD3_qx_csSYeIzugYlI_CIvxS35IMFSfBfXJb-QphbZGp_vEUv05aBOiJY2yhDfgQbeHBytqO0wxC8AKapDXGBauq32al0J/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/AVvXsEjt619iQc7ajx2I-JpqRlndFnAj1bnqk9cuGR8mG98IZ9SWZ-vklCTlqoM4v2pNWcEyVO7jYYuUVIwJKaViAP0-ViEQm85_Kuvq7GnUC7rR5FLXao1Apa56fIZsUg-b2ytZcJv6zrBFqT4r/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/AVvXsEiRJdRjkLiugEfo9VejkPt0VoATe2neqYdTyFzwjLLwBRHNbYb2QvIIuG9_j0r5N2s_kJEQH8QhJDMz0Z9wMcStOALF1TFLmPTrR6UXXRtKTVO_aFVsBUBEj9xdJgdH0x8I71bCqsmOWhO0/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/AVvXsEidPaoHFkv9weElgR11x2U6msnTRFwm7_fwzKIq_fAV3Q51-YsVpKGWIvka5siD_TVsoZ0QulROQsVOljw0SMC6xDS9qmjfgS1xRQ30KFe7gEx_LYFC3Jd1Sw9zJ2tJcLrxVOiLwwrbrxgR/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/AVvXsEgTK7777JK0Z2svnigVAU4IiNE2f8UQIYSCgxZ5ZV8yFHLANoaeg45d4CmDupcZzN4OP9zJQS1Q1-kgpE4RdTVMXRA2eAu3bEtIaT5bGli2FnDJdIBXRujxfmEY6vMttXXIJuYLSoTXGePC/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/AVvXsEj-pb5sceiSuWhhxbFJmkICbOgP1yj88LTRvT45aMqGV5DHiUJRgqsG0xJKX8YBE8tNila0N_ocukuO7fpslO1ht7peDo66FBatmFg8nMzcPJkIyI70KtX2U9FKzJsFfAX0uG_5NJr3Trc-/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/AVvXsEj_xeJ0dvBSoLXfzL2E7kCgm0igP9h1lx0HRVIC5ykU-gSQ-KVQWT3uPCyQHtyRc1wFYBYv6YXxtu5OKVLE3VZImy4PeDh9btlFfnadvm-xQFjnUwdCQb2IVmYfxYc8Tzi6YFxhkOJJnz2z/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/AVvXsEiIa4fq2O2lcLkVEE5AUJxJca088EL2F5VIN1z-SF-kpvLJy2U92WI1z7jTUy-N4jrromQ5VIGPyoJ76jjLGyA80zcmokrCeLX-BZ9pk2YGF-HyOiOzMVmQCQ5AzGRd9LH5RLIoN3HrUs1T/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/AVvXsEiOrqrMLtkoAEIwQhZkOHJaN8cNPH3s9gTgzMMqF3rSzvR-Tn-0k0Km6VJ77sl2ENP7CXIwte6J_9c9uBlmrc9B8eu13Wsjd-URBDUAffrqYJjULfNmrzihFYn4ovUMGOmCZB9dN1o_D-AE/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://blogtutorials-01.blogspot.com/2012/04/cara-pasang-widget-google-translate.html" target="_blank">Translate Widget</a> by Google
</div></div>

  • Jika sudah, Simpan
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.
Demikian blogger tutorial mengenai Cara Pasang Gadget Google Translate Di Blogspot.


Semoga bermanfaat dan semoga berhasil
Terima Kasih ^_^
Share:

0 comments:

Post a Comment

blog ariel

lazada

Blog Archive

ariel adyatna. Powered by Blogger.

Labels

Blog Archive