Forum Archive - Change Image on click

Change Image on click
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
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
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
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 widgetJan 6, 2019 9:52 pmReplies: 1Post by: jmric68
flag doesn't clickDec 10, 2018 6:52 amReplies: 3Post by: maga
Change language automaticallyNov 26, 2018 9:29 pmReplies: 3Post by: Antilb
Change the color of the Language Switcher can i do that?Sep 18, 2018 1:58 pmReplies: 3Post by: rohitlopes
Change Link ColorSep 11, 2018 7:10 pmReplies: 3Post by: onechance

Try GTranslate with a free 15 day trial