javascript:langpair="fr|en"; text=""+(window.getSelection?window.getSelection() :document.getselection?document.getSelection() :document.selection.createRange().text); if(!text)text=prompt("enter%20text%20to%20translate",""); if(text!=null)void(window.open( "http://google.com/translate_t?langpair="+langpair+"&text="+text, "translate","scrollbars=1,resizablel=1,width=500,height=500"))
Never been to CodeSnippets before?
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
JS translation bookmarklet (See related posts)
Comments on this post
You need to create an account or log in to post comments to this site.
Related Posts
» technorati multi-word taggin... in javascript bookmarklet technorati tag tagging
» Javascript Bookmarklets in javascript bookmarklet js
» translate JavaScript bookmar... in osx mac javascript bookmarklet safari web internet bookmark
» Javascript todo-list sorter in javascript
» Validate a url in javascript
» Creating nodes with Javascri... in javascript dom
Snippets (source code soon to be available) developed by Peter Cooper and powered by Ruby On Rails