Mouse over coordinates

I am looking to create a menu similar to the one found here:
All I need to know is how do you get the bar on this site the white rectangle) to go to a specific x-axis location on mouse over?
Any help would be much appreciated.