7 Jan 2013

couch mode print story

Google Translate Widget with Flags For Blogger

he Google Translate Widget allows your visitors to translate your site or blog in their own languages.
This widget auto detect your blog language and translate it to the readers chosen language.
It supports 12 different languages: English, French, German, Spanish, Italian, Dutch, Brazilian, Russian, Japanese, Korean, Arabic And Chinese.




How To Add It To Blogger

Go to your Blogger Dashboard >> Design >> Page Elements >> Click on "Add A Gadget" link, choose HTML/JavaScript and paste the following code in the empty box:

<script type="text/javascript">
function showHide(shID) {
    if (document.getElementById(shID)) {
        if (document.getElementById(shID+'-show').style.display != 'none') {
            document.getElementById(shID+'-show').style.display = 'none';
            document.getElementById(shID).style.display = 'block';
        }
        else {
            document.getElementById(shID+'-show').style.display = 'inline';
            document.getElementById(shID).style.display = 'none';
        }
    }
}
</script>

<style>

 .google_translate img {
margin: 10px 20px 0px 20px;
    height: 24px;
    width: 24px;
        }
        .google_translate:hover img {
filter:alpha(opacity=0.30);
        -moz-opacity: 0.30;
        opacity: 0.30;
        border:0;
        }

.more {
    display: none;
a.showLink, a.hideLink {
    text-decoration: none;
    color: #0880C4;
    padding-left: 18px;
    background: transparent('down.gif') no-repeat left; }

a.hideLink {
    background: transparent url('up.gif') no-repeat left;
color: #0880C4;}

a.showLink:hover, a.hideLink:hover {
color: #0880C4;
 }

 </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=auto%7cen&hl=en'); return false;"><img alt="English" border="0" align="absbottom" title="English" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiW8JUcrTsNUXgtXvpYaPKz56jgk4da6hxycKbTjU1hv2OYqH1dFhejADYDKdPzFiSL91k1UO5n1ENuaholKS2tx9SP6DpeL1oE_lKbq46v7UygTQgyu06DRS1zJqEmHEkP2RhLy7C_HJK_/s1600/United+Kingdom(Great+Britain).png" style="cursor: pointer;margin-right:8px" 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=auto%7cfr&hl=en'); return false;"><img alt="French" border="0" align="absbottom" title="French" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgxl96CaqFBOiwJXVuefqBOcX_aWNiIeucwhDOpzwMTb_l-bnB3Ilm6Irn_U58zjcTSMANFgs7kudbmW9riCb9IiBV_Oxc4ldqQofKNqYdlnhMLcE-yF19sfMGRWiKdxa-cYDvwti0tKuss/s1600/France.png" style="cursor: pointer;margin-right:8px" 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=auto%7cde&hl=en'); return false;"><img alt="German" border="0" align="absbottom" title="German" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVpk0zpuUgIH2eG0laGiQxhS4zXY8OF5BVshLHGkP_3ImkjqTy1espWR0S45gFZ2A8hCG05UeLSKT8J2-uGsym7e7pXPwwiNvuAKL4DSoc7I-7Sp35LwpMkFG9c5lHY2FuFr6mqeGgNDKc/s1600/Germany.png" style="cursor: pointer;margin-right:8px" 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=auto%7ces&hl=en'); return false;"><img alt="Spain" border="0" align="absbottom" title="Spain" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirzaVDE4cftPs7WrDjzHnw3NXcdMEawaG6QfS5ksYGRoPky9slcvNS-vbIO0mqWJWb2PSjomQ5VTfsdWKW6Ea4-Ux3EVcv541I6GF7UJgqrWzI7RfyXgr4Tmz0MnyW7GtRjrVTgi9NeWwM/s1600/Spain.png" style="cursor: pointer;margin-right:8px" width="24"/></a><a href="#" id="example-show" class="showLink"
onclick="showHide('example');return false;">More</a>
<div id="example" class="more">
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Italian" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cit&hl=en'); return false;"><img alt="Italian" border="0" align="absbottom" title="Italian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhXorSS3z_j1fOZUqSIXTZyItuvA4u4g82d1UofFNt3zU98NjrE86L8O6TTvJA_VaIkIjvGkO8da3SblKBDlqmYfurd-VxWVmCCUk-9kKWNG8cnyioHiV-h-qagyFMa0HxutWqiuLdspOOo/s1600/Italy.png" style="cursor: pointer;margin-right:8px" 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=auto%7cnl&hl=en'); return false;"><img alt="Dutch" border="0" align="absbottom" title="Dutch" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBSZlQO56lYHIqzSYL6BqrzWjYJrKUqhsRTab32_nUNPUp0R8QZjfnjtDPShnJwSzFK6mBUqS-TKYxjKaZVbrjoxMtFTfSc7i1mcex7p13_LHemWLkGxHoNicj3a4SCeZCup4XZKVpMFxr/s1600/Netherlands.png" style="cursor: pointer;margin-right:8px" 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=auto%7cru&hl=en'); return false;"><img alt="Russian" border="0" align="absbottom" title="Russian" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhKCH6SGnGBgG_a40nzVa8kx31A614-4s4DoiCtzAh8e0DoOAw4nzoGWONghyphenhyphen7q5hWLImYbUYPUcgCA8vkcYTehpAwYwncdNVElvDIj2KI7hQ0aLx_Zf8CzMbYG9wS4854sKUXWQiswclnL/s1600/Russian+Federation.png" style="cursor: pointer;margin-right:8px" 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=auto%7cpt&hl=en'); return false;"><img alt="Portuguese" border="0" align="absbottom" title="Portuguese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjsMAsD6ub9shtJFBp_ZWBX0J1lyKgXjrDgWoT5lXmAC6IVhcfQQVPvpFXJEHm7a6gO7lF_wJLweo-_49RrRlTlUIQrHlJLqqf6ulOVL14iYuQRpommTRZxAIqbcLa89PQzsaiqg2QZAfyp/s1600/Brazil.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
<br />
 <a class="google_translate" href="#" target="_blank" rel="nofollow" title="Japanese" onclick="window.open('http://translate.google.com/translate?u='+encodeURIComponent(location.href)+'&langpair=auto%7cja&hl=en'); return false;"><img alt="Japanese" border="0" align="absbottom" title="Japanese" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh_Qk0PJbqNzSwzr4tJoeWVPb3ptQq22Fw7rrtzhqyadnh6M-kFh1RsPRznWPcKkdyUurKp-f5HPfEPFL6cOcgFRJF_g_5wYJKlIizy_Rfw31ZcZ6AiV0IGubkhEGd4axRnL2xY8yjAy4Oj/s1600/Japan.png" style="cursor: pointer;margin-right:8px" 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=auto%7cko&hl=en'); return false;"><img alt="Korean" border="0" align="absbottom" title="Korean" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV9SwhjXdnY-05_YjF4edMOPa9qlVTgP9tjD5oSTYwUPXIsa3j2UVjudcBvfPiI02KkFIaOMsCuEPzfCEWottDTqkcECvz4y7leGt755RM-0DSuinVci5NElGFhOMw2uON9i615aamieRS/s1600/South+Korea.png" style="cursor: pointer;margin-right:8px" 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=auto%7car&hl=en'); return false;"><img alt="Arabic" border="0" align="absbottom" title="Arabic" height="24" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg1mX9ZooVYDgP2GDK0qfUwSKYm25sqAna8ebaiLm_pEz-ut_MtkhSD5ui3Uy4Q7gOZeSdx2jyJa91AYwKChyskEx1hzUMFItP0KeC3PLpwqOu1A6B3uscuVsD57cjiLgznHddMw7QWNx8J/s1600/Saudi+Arabia.png" style="cursor: pointer;margin-right:8px" 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=auto%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/AVvXsEjRh6aamHV6o4cHwfC5vu4Nvt67jPRR9vAs8ulRWyD5Iqmhg5UdkPqWdRn5vTSxwB-A6qsnhtlv18YxJ8_tttOmY34s_dCf5NJwsH1gu0IXkC6JWFS2U39CfM1DxWWQBCX1qK2JBuXm9ala/s1600/China.png" style="cursor: pointer;margin-right:8px" width="24"/></a>
    <p><a href="#" id="example-hide" class="hideLink"
    onclick="showHide('example');return false;">Hide / </a><a href="http://helplogger.blogspot.com"><font size="1px">Get this widget</font></a></p>
</div>
     </div>

Then click on Save

Enjoy (

0 comments:

Post a Comment

Blogger Widgets