There are two different methods to handle the way a button move when players bust out/leave the table - 'dead button' and 'moving button'. Different sites use different methods

you can read about the two methods on
http://www.homepokertourney.com/button.htm