473,322 Members | 1,401 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

Scrolling content without scrollbars - possilbe ?

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

Aug 15 '06 #1
2 1585
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
Aug 15 '06 #2
СПАСИЪО, Georgi !

And if want to do It animated, i should use it with simpe loop ? I am
asking becouse I was only scripting animations in Action Script.

Cheers!
Georgi Naumov napisał(a):
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
Aug 16 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Hugh Dickinson | last post by:
Does anybody know whether the netscape 7+ browsers support afunction similar to the internet explorer doScroll() function, this has the effect of pressing the scrollbar button, but can be scripted...
4
by: mr_burns | last post by:
Hi, Is it possible to disble horizontal scrolling using CSS? I want to try and use two backgrounds, one tiling vertically and part of the body background, which will not force scrolling, but one...
5
by: Steve Belanger | last post by:
Has anybody heard or figured out a way to make a DIV with overflow: scroll to look the same in IE and Firefox in IE i have one table splitted in two, the bottom part is the scrolling (Set to a...
44
by: Jim M | last post by:
I have had great success with using <iframe> with overflow-y set to auto. I can get a similar look with the <iframe> tag. BUT... In all cases I need to have fixed heights. Is there a way to...
5
by: Tom Szabo | last post by:
Hi, Is it possible to have only vertical scrolling enabled on a DIV? style="BORDER:1px ; OVERFLOW: auto; WIDTH:799px; HEIGHT:249px;position: absolute; top:0; left:0; " will have both...
13
by: al jones | last post by:
I guess one question at a time will work better. URL http://aljones.us (yes, I'm back again) I'd like to cause this whole page to fill the viewable window if I can. Meaning that I'd like the...
0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
2
by: P2P | last post by:
Hi I am wondering if someone know of a free cross-browsers vertical scrolling script that - is cross cross-browsers - will call the scrolling content from an external html page or from a...
1
by: mrabie | last post by:
Hi All, I know this has been discussed before but i can't really find an answer to what i want to do. I am developing an application for touchscreen using C#. It's going to be a fullscreen...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, youll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shllpp 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.