Words Catcher on web pages

Using Javascript can you get the word the mouse pointer may be hovering over, and then display a tool tip when the hover event is made?

Have you seen what Google Translate do when you translate a page from one language to another? That is some technique you could use in doing the same.

Thanks.