Espero te sirva, arregla lo ke no te sirva:
Código HTML:
Ver original<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--
#apDiv1 {
position:absolute;
left:224px;
top:79px;
width:477px;
height:382px;
z-index:1;
}
#apDiv2 {
position:absolute;
left:393px;
top:318px;
width:143px;
height:103px;
z-index:2;
}
#apDiv3 {
position:absolute;
left:439px;
top:328px;
width:50px;
height:24px;
z-index:3;
}
#apDiv4 {
position:absolute;
left:405px;
top:353px;
width:34px;
height:24px;
z-index:4;
}
#apDiv5 {
position:absolute;
left:441px;
top:157px;
width:20px;
height:28px;
z-index:5;
}
#apDiv6 {
position:absolute;
left:440px;
top:377px;
width:49px;
height:23px;
z-index:5;
}
#apDiv7 {
position:absolute;
left:488px;
top:352px;
width:35px;
height:24px;
z-index:6;
}
#imagen {
position:absolute;
left:361px;
top:123px;
width:183px;
height:110px;
z-index:7;
}
-->
<script language="javascript">
var x=0;
function derecha(){
img=document.getElementById("imagen");
x+=20;
img.style.left=x+'px';
}
function izq(){
img=document.getElementById("imagen");
x-=20;
img.style.left=x+'px';
}
function arriba(){
img=document.getElementById("imagen");
x-=20;
img.style.top=x+'px';
}
function abajo(){
img=document.getElementById("imagen");
x+=20;
img.style.top=x+'px';
}
<input type="button" onclick="arriba()" value="Arriba" /> <input type="button" onclick="izq()" value="Izq" /> <input type="button" onclick="abajo()" value="Abajo" /> <input type="button" value="Der" onclick="derecha()"/> <img alt="imagen" id="imagen"/>