function pageup(e) {
UAGENT = navigator.userAgent.toUpperCase();
if (UAGENT.indexOf("MSIE") >=0) { posi = event.y; }
else { posi = e.pageY; }
moveObje(posi);
}
function moveObje(position) {
move = position / 10;
point = parseInt(position - move);
scrollTo(0,point);
if (point > 0) { setTimeout("moveObje(point)",10); }
}
<a href="javascript:;" onClick="pageup(event);return false"><img name="" src="../common/image/page_up.gif" width="84" height="17" alt="Back to TOP"></a>
UAGENT = navigator.userAgent.toUpperCase();
if (UAGENT.indexOf("MSIE") >=0) { posi = event.y; }
else { posi = e.pageY; }
moveObje(posi);
}
function moveObje(position) {
move = position / 10;
point = parseInt(position - move);
scrollTo(0,point);
if (point > 0) { setTimeout("moveObje(point)",10); }
}
<a href="javascript:;" onClick="pageup(event);return false"><img name="" src="../common/image/page_up.gif" width="84" height="17" alt="Back to TOP"></a>