Created
April 9, 2010 01:26
-
-
Save anselmobattisti/360765 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="text/javascript" src="http://www.google.com/jsapi"></script> | |
<script type="text/javascript"> | |
google.load("language", "1"); | |
function translate(palavra) { | |
google.language.translate(palavra, 'pt', 'en', function(result) { | |
if (result.translation) { | |
alert(result.translation); | |
} | |
}); | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment