The two applets below use JalviewLite's javascript API to exchange events about the currently selected region and mouse position in the alignment. View the source here to see how it has been done (If the link doesn't work on your browser try going to this page and viewing the page source manually).