<br> function googleTranslateElementInit() {<br> new google.translate.TranslateElement({<br> pageLanguage: 'en',<br> includedLanguages: 'en,zh-CN,de',<br> layout: google.translate.TranslateElement.FloatPosition.TOP_LEFT,<br> multilanguagePage: true}, 'google_translate_element');<br> }<br>
如何做到进入网页默认自动翻译!!
我用一下方式都不行,可以改变select中的值但是不能出发翻译事件
$(window).load(function(){
$('.goog-te-combo').change(function(){
$('.goog-te-combo').empty();
var optiongoogle = $('').val('en').text('English');
// $('.goog-te-combo').append(optiongoogle);
$('.goog-te-combo').val('en');
});
$('.goog-te-combo').click(function(){
$('.goog-te-combo').val('en');
});
$('.goog-te-combo').val('en');
$('.goog-te-combo').ondblclick();
});