<script type="text/javascript">
document.getElementById('h_one').style.position="relative"
document.getElementById('h_one').style.left=+i
document.getElementById('h_two').style.position="relative"
document.getElementById('h_two').style.top=+i
timer=setTimeout("starttimer()",10)
<body onload="starttimer()" onunload="stoptimer()">