JQuery Code Snippet to “Translate your website in many languages”

You just need to add the script in your HTML which is given below:


<!-- If you already have jQuery embeded in your page, remove the following line: -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>
<!-- Start Translate This button  -->
<script src="http://s1.translationcloud.com/_3_0/javascript/e.js?translate_this_src=hi"></script>
<div class="translate_this notranslate" style="margin-top:20px;">
<a class="translate_this_drop translate_this_tc_icon" title="Translate" href="http://translationcloud.com">translation services</a>
<a class="translate_this_drop translate_this_translate_text" title="Translate" href="http://translationcloud.com">Translate</a>
<span class="translate_this_separator"> | </span>
<a class="translate_this_no_drop" title="English" href="http://translationcloud.com/languages/english/" rel="en">English translation</a>
<a class="translate_this_no_drop" title="Spanish" href="http://translationcloud.com/languages/spanish/" rel="es">Spanish</a>
<a class="translate_this_no_drop" title="German" href="http://translationcloud.com/languages/german/" rel="de">German</a>
<a class="translate_this_no_drop" title="Chinese" href="http://translationcloud.com/languages/chinese/" rel="zh-CHS">translate Chinese</a>
</div> <!-- End Translate This button -->
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s