<DIV ID='DV' STYLE="OVERFLOW:auto;width:100;height:100">
<table border="1" width="300%" height="300%">
  <tr>
    <td width="100%"> </td>
  </tr>
</table>
</DIV><span id=t1></span><span id=t2></span>
<script language=javascript>
var l=DV.scrollLeft
var t=DV.scrollTop
function DV.onscroll(){
with(DV){
if(scrollLeft>l)t1.innerText='right'
else if(scrollLeft<l)t1.innerText='left'
else t1.innerText=t1.innerText
if(scrollTop>t)t2.innerText='down'
else if(scrollTop<t)t2.innerText='up'
else t2.innerText=t2.innerText
l=scrollLeft
t=scrollTop
}
}
</script>