Wednesday 19 September 2012

Google Translate Widget with Flags For Blogger



ဒါေလးကေတာ့ google ရဲ႕၀န္ေဆာင္မွုေလးတစ္ခုပါ... နိဳင္ငံအေတာ္မ်ားမ်ားရဲ႕ အလံေတာ္ေလးေတြပါ..
It supports 12 different languages: English, French, German, Spanish, Italian, Dutch, Brazilian, Russian, Japanese, Korean, Arabic And Chinese.


ထည့္နည္းေလးကေတာ့

ပထမဆုံး Blogger sing in လုပ္ပါ Blogger Dashboard >> Design >> Page Elements >>"Add A Gadget" အဲထဲကေနမွ HTML/JavaScript ကိုကလစ္လိုက္တာနဲ႕ box တစ္ခုက်လာမယ္  ေအာက္ေပးထားတဲ့ ကုဒ္ေတြကို ထည့္ျုပီး save လိုက္ပါဗ်ာ....

<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/AVvXsEhd4vmCbRtcy8oVZPcmfK_MWxyyaRsrNwk64D5wndFzXJgAO8QXfV0eWn41-tlW6JtVzJLpHsbQW9ZgeuwTDG8ej-hQIooWPsKyFB-v7kSQHCCg0ZAZVdFYdtzcq5pp2AiO-5u_g8Zn5oEJ/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/AVvXsEiprGPGqSlR63LSGLLs-kCc0S8uXDiiMZNXwVLlfe73-7FPVESTl8Tsuike8qnDqxdAH-w2DfacKP877U8S2-VWGl57qxXhjvATvDLzmrH3ZXsmNvJJIfKOxd60EVokTSwZVCmIUkFkPRcV/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/AVvXsEi_CPLZQoDpCI1aT9oEZPY2wlIFf0QV8tL_xQvjtviAlmq0a0bY0dWgD8vWfoS_KbdR3_KMWN9akVhLatg2bJIXEQlSXrGYbwa9nfWge1bjNm2X5zZ-HS4uofpoAKMKw0A6bP4mv15BXcT9/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/AVvXsEgCSi3qT4TZobj99bULmldmUuDUYjWMPjuXBvYwYrZOLMQQLs-MfLD-ObNbzxQKyh0fK_fSB28tkYUJejvggKJwFB0_mjDUSLdnB-nBMSzhfIzu37popUD4MAo8J4uKvYdiYfp_LEaCbyXH/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/AVvXsEhFcX4l1WPnb5I2GJZMToZUkie0hyKV0VFf1mkQTl34fBNHKn74DcYtsaXaT9t8w5l-frylZ2X6RLmYF4gQxb3_ZehPfN4k5674qtIO7aBZHLqv5rJ-g-n6WCn7SRO2cg6jeQ7atZVt-p1g/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/AVvXsEgzs99MQpvEvuQi2ym78ARgf_eBbLKJwr0723R5HbGOUgPot4eZJ0g6QHZQvfJIddq9CV42XpJk301lPKMpp2dFjD8ol7-jaajqoR6-9zjKhbR8oDuGkqRy8wvm7SqE11ER_rkMKOMA-tTL/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/AVvXsEgEm1icfjdj9IkTpyqwpHL7CZoOaUjXOo1-vGkGSmTxqL8lwtUkHJpceHquI9YkFN5n79Q_WDN0uNpTQuc1F1ttMhGC8vqskJT5xS5K12cOFJhMpkrHMqqZGFjdk9J53p7aFCWjto6e3gfP/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/AVvXsEiTyuyaSuUhsjKXa2RBVgSoAUUFqqVpFjVokVRQKkMygEOrLs8Fm14vX71LHGWJn49thoeDRK5fO47v3kUcyF-JGs5DQ6NkRUfMPpTAQiNSZ22lUXD3CD6XdkaGUJSn2UoEK1sFeDR2IIIt/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/AVvXsEgODtp2N3_13qCRCKqr0d3JEPt1Xu_G16sBOECal1_AUsvVGAw6_GPSHWzTzKzP6Oj-Dc9iWUwkSzJckleAPDYwVeDjY88Ci5phkVfi-h7E7vo7It-T0Nv3b-2czYRfP1RG63Qplh6Gw-S5/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/AVvXsEgJQ_mXLaZZNTlD0SHTS9IYkAw_qrgrpRkiAmCbF10UOcy_yRiYJBPbL8LOjAWX8ko8kB6qxppQAJ7UsaJdjFKzEJXycA2u3ULwxVRBHEwcizKaTiF02w6r2ymwMNLqE4sJawiDAtJEjlnJ/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/AVvXsEhxHzyGM8n4rQ8on6ktJlaXxVWH8L4Wcgj9172KOc4cBaVLGBhk2w8QBOHmANvP1lWeYjceBb5ILuoWcO3XvZuQu9YV333GRAQu0rANJY-ExKWz-Yh4ZE1YNMCkjswKz02CsubCvm_sNBnI/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/AVvXsEjzrVqlFzA6Yc5mLWEsdb91YF9fsOOEoK8vzh7VxKjwQxAzuFHCt-VnEyFAKjmBWh_zF5sKNs7q7LdcxICX3w-CNwSNofqjRyK9tRzV4UdPI9LXuszFhSQemnsd79EuwXBX7z4VwU2FBmUL/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>


ေအာင္ေအာင္(မကစ)
www.ledimyethar.com
www.depelyin.co.cc
www.aungkyaw.com

0 comments:

Post a Comment