I can do this:
document.all["tussen"].style.top= 200
so it moves to 200, but what I want is to move it 200 pxs down. I want to do something like this:
document.all["tussen"].style.top+= 200
or
document.all["tussen"].style.top= document.all["tussen"].style.top + 200
or
var temp = document.all["tussen"].style.top
document.all["tussen"].style.top = (temp+200)
top returns a string - it doesn't recognise if it's px or %
X-browser:
var t=parseInt(document.getElementById('tussen').style.top);
document.getElementById('tussen').style.top=t+200+"px";
Bookmarks