How to add google translator to your website

Hey friends. Want to add google translator on your website. It can be be added in different ways. Here two layouts are given. Just copy and paste the code into your webpage.

Google Translate
 <div id="google_translate"></div>
  <script type="text/javascript">
   function googleTranslateElementInit() {
     new google.translate.TranslateElement({
     pageLanguage: 'en',
     layout: google.translate.TranslateElement.InlineLayout.
SIMPLE },'google_translate');
   }
 </script> 
 <script src="http://translate.google.com/translate_a/
element.js?cb=googleTranslateElementInit"></script> 



Translate This
 <div id="translate-this">
    <a href="http://translateth.is/" 
    class="translate-this-button">Translate</a></div>
  <script src="http://www.google.com/jsapi"></script> 
  <script src="http://x.translateth.is/translate-this.js">
  </script> 
  <script type="text/javascript">TranslateThis();</script>

How to add google translator to your website How to add google translator to your website Reviewed by Altaf Hussain on 1:57 PM Rating: 5

No comments:

Altaf Web. Powered by Blogger.