I'm guessing something like this: (my edit on the left)
<img src="http://dl.dropbox.com/u/1024727/heyman.png">
Yeah, all you need to do is - when your setting the position of that sprite to your detector that has the platform moevement, just round the coordinates. I think.