function nudge(id,top,left) {
if(top != "") {
curLocation = parseInt(parent.document.getElementById(id).style.top);
newLocation = parseInt(curLocation) + parseInt(top);
parent.document.getElementById(id).style.top = newLocation + "px";
}
if(left != "") {
curLocation = parseInt(parent.document.getElementById(id).style.left);
newLocation = parseInt(curLocation) + parseInt(left);
parent.document.getElementById(id).style.left = newLocation + "px";
}
}
|