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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -