javascript - Google API translator. How can I translate only one DIV? -
How can I modify this code to translate only one container on the page with id #illrics?
& lt; Div id = "google_translate_element" & gt; & Lt; / Div & gt; & Lt; Script & gt; Function: googleTranslateElementInit () {new language: 'N', includes: 'ru', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, Autodisplay: incorrect, multilingual page: true}, ' Google_translate_element '); } & Lt; / Script & gt;
Resolve with this function:
function GoogleSectionalElementInit () {New google.translate.SectionalElement ({sectionalNodeClassName: 'lyrics', controlNodeClassName: 'translation-song', background: 'trasparent'}, 'google_sectional_element'); }
Comments
Post a Comment