Skip to content

Instantly share code, notes, and snippets.

@orangkucing
Created June 17, 2012 18:38
Show Gist options
  • Save orangkucing/2945377 to your computer and use it in GitHub Desktop.
Save orangkucing/2945377 to your computer and use it in GitHub Desktop.
<span></span><script type="text/javascript">//<![CDATA[
span6183 = document.getElementsByTagName('script');
span6183 = span6183[span6183.length - 1].previousSibling;
(function ()
{
var from = "en", to = "ja", text = "I am tired and sleepy.";
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=callback6183";
span6183.appendChild(s);
})();
function callback6183(response)
{
span6183.innerHTML = response;
}
//]]></script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment