The following java script is for executing Google Translation of a web page from English to Spanish
javascript:var%20t=((window.getSelection&&window.getSelection())||(document.getS election&&document.getSelection())||(document.selection&&document.selection.crea teRange&&document.selection.createRange().text));var%20e=(document.charset||docu ment.characterSet);if(t!='')%7blocation.href='http://translate.google.com/translate_t?text='+t+'&hl=en&langpair=auto|es&tbb=1&ie='+e;%7delse%7blocation.hr ef='http://translate.google.com/translate?u='+escape(location.href)+'&hl=en&langpair=auto|es&tbb=1&ie='+e;%7d;
I would like to be able to execute this script when I click on text
on my home page ( eg Nos Hablamos Espanol). I know that it is bad practice, and in fact may not even work, to put javasript in
the PHP code. The question is, how do I go about incorporating
the javascript into my web site in order to perform the task at
hand?
I am not a java programmer and in fact am still learning PHP and HTML. Anybody able to help me with this?



