Animated buttons

I have created six buttons, i want them to move when the cursor rolls over them but snap back to their original state when the cursor rolls away. does anyone have any coding that can help with this. Another problem is I cant get the buttons to move in any random order they will only move in order e.g button number two will only work if I have rolled over button number one first.