Yes you can see here:
http://developer.mozilla.org/en/docs...ment.scrollTop
and here:
http://msdn.microsoft.com/workshop/a.../scrolltop.asp
This is my small example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title></title>
<style type="text/css">
#mydiv{
width: 80px;
height: 50px;
overflow: hidden;
float: left;
margin-left: 150px;
}
#buttons{
float: left;
}
</style>
<script type="text/javascript">
function scrollObj(aObj,aTop)
{
if(aTop)
aObj.scrollTop+=5;
else
aObj.scrollTop-=5;
return false;
}
</script>
</head>
<body>
<div id="mydiv">
I'm one veryyyyyyyyyyyyy logn
lineeeeeeeeeeeeeeeeee
lineeeeeeeeeeeeeeeeee
lineeeeeeeeeeeeeeeeee
lineeeeeeeeeeeeeeeeee
</div>
<div id="buttons">
<a href="test.html" onclick="return
scrollObj(document.getElementById('mydiv'),true);" >Scrroll top</a><br
/>
<a href="test.html" onclick="return
scrollObj(document.getElementById('mydiv'),false); ">Scrroll bottom</a>
</div>
</body>
</html>
ge********@gmail.com написа:
Is there any way to scroll browser's (or div's) content with disabled
scroll bars ? Jumping on lines through JavaScript or etc.. I mean about
some good performance method.
Cheers,
Paul Gega