Using offsets to fine-tune placement
// parseInt() stands for parse integer
// it gets the number portion of a string, for example:
var position = parseInt('234px'); // equals 234
// how to get the current position of something:
var currentTop =parseInt( document.getElementById('thingID').style.top );
var currentLeft =parseInt( document.getElementById('thingID').style.left );
// add the offsets...
var newTop =currentTop -5;
var newLeft =currentLeft -5;
// and move into the new position
document.getElementById('thingID').style.top =newTop +'px';
document.getElementById('thingID').style.left =newLeft +'px';