Skip to content

Instantly share code, notes, and snippets.

@orangkucing
Created June 15, 2012 00:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save orangkucing/2933973 to your computer and use it in GitHub Desktop.
Save orangkucing/2933973 to your computer and use it in GitHub Desktop.
<span></span><script type="text/javascript">//<![CDATA[
span6151=document.getElementsByTagName('script');
span6151=span6151[span6151.length - 1].previousSibling;
(function ()
{
var from = "en", to = "es", text = "man";
var s = document.createElement("script");
s.src = "http://onecotravel.info/cgi-bin/kotoba/translate.cgi?basename=Translate" +
"&appId=" +
"&from=" + from +
"&to=" + to +
"&text=" + encodeURIComponent(text) +
"&oncomplete=callback6151";
span6151.appendChild(s);
})();
function callback6151(response)
{
span6151.innerHTML = response;
}
//]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment