Help for making interactive image pan and tilt

Hi is there some one who can help me out in making interactive image pan and tilt.
and the pan and tilt should work only on mouse press only