Follow mouse, but only along X or Y?

Could someone point me towards a tutorial or .FLA to show how to do a mouse follow but only along one plane? I want to make a menu similar to the one at this site: www.ravijour.com Thanks!