开发者

TranslateThis Button

开发者 https://www.devze.com 2023-01-06 08:28 出处:网络
just now i saw \"TranslateThis Button\" which is the script for translate the webpage using javascript.is there any chance to 开发者_JAVA技巧display language flags(ex: only four flags) with out dropdo

just now i saw "TranslateThis Button" which is the script for translate the webpage using javascript. is there any chance to 开发者_JAVA技巧display language flags(ex: only four flags) with out dropdown? please help me.link text

here is the code `

<!-- Begin TranslateThis Button -->

<div id="translate-this"><a href="http://translateth.is/" class="translate-this-button">Translate</a></div>

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script>
<script type="text/javascript">
TranslateThis();
</script>

<!-- End TranslateThis Button -->

`


Sorry for my bad english. This question is old but You can change like this by example :

<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script type="text/javascript" src="http://x.translateth.is/translate-this.js"></script>
<script type="text/javascript">
TranslateThis({
undoText : 'Undo &raquo;',
panelText : 'Translate Into:',
moreText : '36 More Languages &raquo;',
busyText : 'Translating page...',
cancelText : 'cancel',
ddLangs : [
    'en',
    'de',
    'it',
    'es',
],
noBtn : false
});
0

精彩评论

暂无评论...
验证码 换一张
取 消