• rss

Pasang Google Translate di Blog

arsip kula|Kamis, 21 Oktober 2010|08.40
fb tweet g+
Perasaan semuanya sudah tahu kegunaan dan cara memasang google translate di blog. Tetapi kenapa saya keukeuh buat postingan. Ini hanya untuk arsip saja. Soalnya translate yang dipergunakan saat ini beda dengan google translate yang diarsipkan. Jadi nanti kalau ingin ganti tampilan google translate, tinggal buka arsip saja.
Sebagai bocoran, google translate yang diarsipkan ini pakai icon bendera.

English French German Spain Italian Dutch Russian Japanese Arabic Chinese Simplified

Caranya:
- Buka Akun Blog
- Klik Rancangan. Di Elemen Laman, Pilih Tambah Gadget
- Pilih HTML/javascript dan Copy Paste kode 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.30;
opacity: 0.30;
border:0;
}
</style>
<div>
<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=" http://lh3.ggpht.com/_xbaDQUA_0uo/TJF6fww29iI/AAAAAAAAAs4/ZngmLIABpkc/s800/English_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh5.ggpht.com/_xbaDQUA_0uo/TJF6gUn6lNI/AAAAAAAAAs8/Lnqy1me76Lg/s800/French_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh6.ggpht.com/_xbaDQUA_0uo/TJF6ggiWvJI/AAAAAAAAAtA/0y0T-70qJvg/s800/German_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh5.ggpht.com/_xbaDQUA_0uo/TJF7UIrfXvI/AAAAAAAAAtY/-4GhQex5zTo/s800/Spain_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh3.ggpht.com/_pt7i0nbIOCY/SWwj-14HeyI/AAAAAAAAA2I/TN52dIqkO9Q/Italian_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh5.ggpht.com/_xbaDQUA_0uo/TJGMlbriTTI/AAAAAAAAAtw/9pGEVQengnk/s800/Dutch_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" width="24"/></a>
<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=" http://lh3.ggpht.com/_xbaDQUA_0uo/TJF7H7HCPdI/AAAAAAAAAtU/Tg6trI0D8GA/s800/Russian_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh5.ggpht.com/_xbaDQUA_0uo/TJF7HkH9MKI/AAAAAAAAAtI/F0Zt4Q_5UeE/s800/Japanese_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh6.ggpht.com/_xbaDQUA_0uo/TJF6fn22eQI/AAAAAAAAAsw/TJbSliR6rqQ/s800/Arabic_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" 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=" http://lh4.ggpht.com/_xbaDQUA_0uo/TJF6f_s_WeI/AAAAAAAAAs0/4TBHoLd_qCQ/s800/Chinese-Simplified_thumb.png?imgmax=800" style="cursor: pointer;margin-right:10px" width="24"/></a>
</div>


Jika lampilannya ingin menjadi dua baris, tinggal tambahan kode <br /> setelah kode:

<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=" http://lh3.ggpht.com/_pt7i0nbIOCY/SWwj-14HeyI/AAAAAAAAA2I/TN52dIqkO9Q/Italian_thumb%5B1%5D.png?imgmax=800" style="cursor: pointer;margin-right:10px" width="24"/></a>

Terakhir Simpan Template .....Selesai