selamat datang lagi nih...iseng-iseng ngepost.mudah-mudahan aja bermanfaat untuk blog anda.
hari ini saya ingin berbagi tentang cara membuat google translate di blog.
gambar di samping ini hanya contoh.bentuk sesudah jadi yaitu melebar seperti google translate saya jadi tidak usah bingung lagi nih buat yang newbie
anda bisa copy-paste code html / javascript di bawah ini
===============================================================
<style>
.google_translate img {filter:alpha(opacity=100);-moz-opacity: 1.0;opacity: 1.0;border:0;}
.google_translate:hover img {filter:alpha(opacity=30);-moz-opacity: 0.30;opacity: 0.30;border:0;}
.google_translatextra:hover img {filter:alpha(opacity=0.30)-moz-opacity: 0.30opacity: 0.30;border:0;}
</style>
<center>
<a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhPY3swd7UKaURVU42roZb6b6axJeAVraMILaiJEfzvSQOUOOI94-KrMH1VPWDgBfpNjLdOZ6su4kIFpIlp4X8ByjMuRzFF6LV-r5lWWEhEbINfWasy8o1DgiueMc1_b_d55cA09taLiZk/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhbiVZhMxhBCQBpsEPSoakVo9rzzml1G2FOMIwNhamggnAQ4JvbAKYZOOlKxsWPKKTJt0uW40PbKOR3k-QszVQcUwnCvNs82ssH5nf83Sh1iw2HAgXcAgJRGIvy32gj9eY9R1PXBnp1c3k/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgndyLafm2TEOQW8x_Zt_RpFF31EH10ywcdk7GgBpJVDMU2NGcekpR69mZhBiIleQzSv-gw-SlN9YZzAVPS0Vk1Y0nVqJX4FSqmvICVhQ-NivlalfP8xpqC4FenZgTslxaLGJHPMQwEd-GD/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg7k1BhDPZbaa-yXs5mdAEs8YrHzfUGm8vLDw-2_S8C9chg3dvbnv0Q7G9sCOdM9VDSTkv88Dq9grDh06WjwqkPyepP4fOBPB5NIbkKgfPNDCoaCPRoxzkScxGabKd-KEhTxiQ94taFofTd/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9k-UQan_TJasg0MaWQCk-v05EN_IzPeALnUlL3gamKfkDO66HieF4MipeaWpkOYM7ej53jR7B0nFEIH4ZnowpZ3wN2-93oJZvsX9Bbv9byq_4y2im13tXynbYkVeOamNadvV9n_gNAug/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWyv5ze9iFQR0-U0x_prnkCIi568kznBJl2YIED_1D-cTv8n_fpVHjihJ6BC-ehafJ3Cyvebm6yBNa_YoyBlqoL9HK-nRlEAjL6XFyxe4CLgrhbM5-ai1EDarWQk2wr5HmrZNYhrr9N3A/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a>
<br />
<a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA2Xtiu2zIEyV5OXllXlhm3FKVKS3quRuDyfXdYvXnw0F0qR05ACxyXjZJuTZDOexm82ApzN9KGneH2LySFKwen6Cx994GcvUcioXzAzmnXGwMqkWrCNw21k383Z3uF-zPcYPspiI2k2Q/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Portuguese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=id%7Cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFHhDqTJlI22CssjqNHYl4l0OmgnHeO4Tt_vjoBBJC1MSxG3P6XbxViEKEe6OZFX4ELLzcuGTN74B17jp3txqog6dovFpnmqfS781aiQRxpvHDSuagOE9KKilFA632pGAmudnjs3rsa9o/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjS99imGY34lcG0M2U7VZvHAsDIAeaWvQ_G3Uz-CiDUi_rUmdJSReJuw2V_m7o5K9T6BSAyoshKIxZK2SkwDJrNxTROiOk_KJDBLHJGTkbZQdIR6R9Yb3Qp0Vw65Rp29jn43r9bRYftKqGy/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi-1Xpyh5E2iMNAzp6WGNH4g4rtSVkij_GSoH8bKJQLMUhrLHWP-AmkBsjMKZfrI431OYrOM5RwqfNYxfpiyBOYvTb7EBvWyw6N2irA6opWJikAv1XEDW74wDSNnsLt4WewGg0ugUNQJzU/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFVjTKgPCkVpjxzwNwcuMt_SpfR_MXUb9Y2vM4WvLJNu-wY-_QiT4ALRWmSr3vWJbuz3yO8Hq9i1h-GkI4Fqu_2aevVShHo2a6yNEiTW8O7IqWFAyJifsEui7qaoeuImiZ3Kp2dBk92Hs/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a> <a class="google_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="32" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj8P5UyDc4uZnNAg9uCpGUHlivWk8BGkFtta9gmPll6RDZ0N5-dOEhPp9FDVaWDk-WZoQme2yBHntOidT9DAhmUHS_rssXgKBz7Gp0LnyADpbzjy9nKZ0k_Y2VYhA8d6LAAO_QQab-V6J8/?imgmax=800" style="cursor: pointer;margin-right:13px" width="24" /></a>
</center>
===============================================================
• add new widget and simpan di javascript anda klik save .selesai