I have a working dropdown language selector powered by google that loads the page in your chosen langauge:
Expand|Select|Wrap|Line Numbers
- <p align="center"><font size="2">Translate :
- <SCRIPT language=javascript1.2 type=text/javascript>document.write('
- <select name="to_lang" onchange="lp=this.options[this.selectedIndex].value; if(lp!=\'\') window.location=\'http://www.google.com/translate?hl=en&ie=UTF-8&oe=UTF-8&u=http://WWW.WEBSITE.COM/PAGE.ASP</select>
- Got rid of the "google frame" onload:
Expand|Select|Wrap|Line Numbers
- <script language="JavaScript1.1" type="text/JavaScript"> if (parent.frames.length > 0) top.location.replace(document.location);</script>
'http://www.google.com/translate?hl=en&ie=UTF-8&oe=UTF-8&u=
Expand|Select|Wrap|Line Numbers
- ' + location.href +'
to make the code load that specific page you're on, so I don't have to cut & paste the URL constantly in the code...
PROBLEM is, as soon as you start adding css styles to the pages, it freaks!
the styles go all over the place!
Is there a way to make some sort of <p class="translate"> or something that when you click a flag, it loads the translated script from google???
Any ideas?
Thanks!
=)