Add Active Language Class
-
Is there a way to add a “currentLanguage” class or some other name, that could be used as an indicator of your active class, to use for styling purposes?
Something like this:
<a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="glink nturl notranslate currentLanguage">English</a> <a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="glink nturl notranslate">Spanish</a>
and then if I click Spanish, I would get this:
<a href="#" onclick="doGTranslate('en|en');return false;" title="English" class="glink nturl notranslate">English</a> <a href="#" onclick="doGTranslate('en|es');return false;" title="Spanish" class="glink nturl notranslate currentLanguage">Spanish</a>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Add Active Language Class’ is closed to new replies.