473,480 Members | 1,901 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to set the amount of scrolling in pixels for a div element?

6 New Member
I have this div element:(just for illustrative purposes)
Expand|Select|Wrap|Line Numbers
  1.  
  2. <div style="width:50px; height: 15px; overflow: auto;">
  3. 1<br />
  4. 2<br />
  5. 3<br />
  6. 4<br />
  7. 5<br />
  8. 6<br />
  9. </div>
  10.  
  11.  
is there a way to set the amount of pixel to scroll in this div when the user clicks the up or down arrows in the scrollbar?. I could program a small javascript code in order to satisfy this needing, however, I'd like to make it fast and simple, so I hope there is at least an object property to set the amount of scrolling.(I have enough programming pending on other parts of one site)
Jul 29 '08 #1
5 1834
drhowarddrfine
7,435 Recognized Expert Expert
No. .
Jul 29 '08 #2
Markus
6,050 Recognized Expert Expert
No. .
However blunt, it's true!

Why would you want to control such a thing?
Jul 30 '08 #3
drhowarddrfine
7,435 Recognized Expert Expert
However blunt, it's true!
Didn't know what else to say. ;)
Jul 30 '08 #4
henryrhenryr
103 New Member
I don't believe it - are you saying absolutely no way possible? Couldn't he write javascript which generates its own scroll bar and controls it according to exactly his parameters?

Nothing is impossible - I'm not saying I know how though!
Jul 31 '08 #5
drhowarddrfine
7,435 Recognized Expert Expert
He said he didn't want to use javascript.
Jul 31 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

4
19562
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...
44
919
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...
2
1269
by: Martin Mrazek | last post by:
Hi, can I manipulate with scroll bars by JS in HTML? Something like ------------------ frame1 button1: ToLeft button2: ToRight ------------------ frame2
0
1173
by: Tom | last post by:
I need to know how far my windows form data grid is scrolling horizontally. Ideally I would like to know how many pixels. I know there is a protected (at least) property in the datagrid called...
1
2342
by: Oberfuhrer | last post by:
Hello all VB.net friends ! i have done most of my programming in assembly, at least so far. Recently i decided to learn a high level language for windows programming. I didnt take long to...
4
7735
by: Keith Bentrup | last post by:
Hi all, I wrote a simple search function to find text in a textarea where not all the text is visible (ie. the text box displays 10 lines but there may be more than 1000 lines to search). I can...
2
1724
by: Rob Pollard | last post by:
Hi All, I am using the flow control (can't remember its full name), to display a few dynamically created controls based on the tags the user has added to my system. This works fine, except when a...
5
4225
by: PythonistL | last post by:
I am a newbie with Javascript. I have this simple script for scrolling text <HTML> <HEAD> <TITLE>Scrolling Message Script</TITLE> <SCRIPT language="JavaScript"><!-- var msg = 'My scrolling...
11
8828
by: Ram | last post by:
Hey, I've got the following code: <font font-size="7">Hello</font> How can I calculate the font-size int the actual size in pixels? Thanks ahead! --sternr
0
7037
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7032
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6730
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6873
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4767
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4471
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2990
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2976
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
558
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.