This is probably what you are looking for, http://jsfiddle.net/9CDtE/4/
HTML
CSS
button{
position:absolute;
top:10px;
left:10px;
}
JS
$(function(){
$("button").on({
mouseover:function(){
$(this).css({
left:(Math.random()*200)+"px",
top:(Math.random()*200)+"px",
});
}
});
});