Change Image on click
Mar 24, 2011 3:44 am by [email protected]
Mar 24, 2011 3:44 am by [email protected]
I don't know if this was answered already. I mainly have 2 languages eng/french. When i click french the content changes, Can i also change my header images as well on the click? if so please let me know how. It would mean the world. Thanks!
Re: Change Image on click
Mar 24, 2011 10:41 am by Edvard
Mar 24, 2011 10:41 am by Edvard
If you are using the free version you can modify the javascript doTranslate funciton to change also the header image. It is very specific to your template, so cannot tell the details.
Re: Change Image on click
Mar 24, 2011 8:52 pm by vitomav
Mar 24, 2011 8:52 pm by vitomav
Ummmmmmm
How would you do it for you site's header??????
what code would u use?
Re: Change Image on click
Mar 25, 2011 9:12 am by Edvard
Mar 25, 2011 9:12 am by Edvard
You can add some id to your header image tag:
<img id="header_image" src="header.png" />
Then inside doTranslate
document.getElementById('header_image').src = "http://yourdomain.com/header_"+lang+".png";
So it will change the header.png to header_lang.png, if your lang = ru it will be header_ru.png
SIMILAR TOPICS
Error message on click on the widget | Jan 6, 2019 9:52 pm | Replies: 1 | Post by: jmric68 |
flag doesn't click | Dec 10, 2018 6:52 am | Replies: 3 | Post by: maga |
Change language automatically | Nov 26, 2018 9:29 pm | Replies: 3 | Post by: Antilb |
Change the color of the Language Switcher can i do that? | Sep 18, 2018 1:58 pm | Replies: 3 | Post by: rohitlopes |
Change Link Color | Sep 11, 2018 7:10 pm | Replies: 3 | Post by: onechance |