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 »',
panelText : 'Translate Into:',
moreText : '36 More Languages »',
busyText : 'Translating page...',
cancelText : 'cancel',
ddLangs : [
'en',
'de',
'it',
'es',
],
noBtn : false
});
精彩评论