js利用google翻译接口把网页翻译成各国语言

网页翻译为德语(Translate Page To German)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cde', 'English_to_German', 'resizable,scrollbars,status'))">网页翻译为德语(Translate Page To German)</a>

网页翻译为西班牙语(Translate Page To Spanish)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Ces', 'English_to_Spanish', 'resizable,scrollbars,status'))">网页翻译为西班牙语(Translate Page To Spanish)</a>

网页翻译为法语(Translate Page To French)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cfr', 'English_to_French', 'resizable,scrollbars,status'))">网页翻译为法语(Translate Page To French)</a>

网页翻译为意大利语(Translate Page To Italian)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cit', 'English_to_Italian', 'resizable,scrollbars,status'))">网页翻译为意大利语(Translate Page To Italian)</a>

网页翻译为日语(Translate Page To Japanese)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cja', 'English_to_Japanese', 'resizable,scrollbars,status'))">网页翻译为日语(Translate Page To Japanese)</a>

网页翻译为韩语(Translate Page To Korean)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cko', 'English_to_Korean', 'resizable,scrollbars,status'))">网页翻译为韩语(Translate Page To Korean)</a>

网页翻译为葡萄牙语(Translate Page To Portuguese)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cpt', 'English_to_Portuguese', 'resizable,scrollbars,status'))">网页翻译为葡萄牙语(Translate Page To Portuguese)</a>

网页翻译为汉语(Translate Page To Chinese)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Czh-CN', 'English_to_Chinese', 'resizable,scrollbars,status'))">网页翻译为汉语(Translate Page To Chinese)</a>

网页翻译为俄罗斯语(Translate Page To Russian)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cru', 'English_to_Russian', 'resizable,scrollbars,status'))">网页翻译为俄罗斯语(Translate Page To Russian)</a>

网页翻译为荷兰语(Translate Page To Dutch)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cnl', 'English_to_Dutch', 'resizable,scrollbars,status'))">网页翻译为荷兰语(Translate Page To Dutch)</a>

网页翻译为丹麦语(Translate Page To Denmark)

<a href="javascript: void(window.open('http://translate.google.com/translate?u='+escape(location.href)+'&amp;langpair=en%7Cda', 'English_to_Denmark', 'resizable,scrollbars,status'))">网页翻译为丹麦语(Translate Page To Denmark)</a>

另外一篇相关的:js-使用google翻译接口API