Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

remote scrolling 1

Status
Not open for further replies.

GIGN

Programmer
Oct 6, 2000
1,082
NZ
Hi all, anyone know how to speak to scrollbars inside a div? Is there some syntax for all scrollbars? scrollTo is not supported by divs. And while you're at it, the syntax for hiding scrollbars - while keeping them working thru remote scrolling.

Also what about accessing the colors of all form elements? Like the borders of text boxes etc?
T.I.A Bj
b2 - benbiddington@surf4nix.com
 
I am currently working on a DHTML selectbox, that supports vertical scrolling with a div. I had to take a break from it and work on a search screen for a while, but I should figure out how to force a scroll soon (maybe with pixelTop?). If you figure it out, let me know. Not sure what you mean by "all the form elements" but you mean a style for selector "input" jared@aauser.com -
 
Oh just that a button accepts border color, but text box does not, and I'd like to integrate it better with it's surroundings - I though that since scrollbars were so customisable that any element should be in theory, it's just finding the right attributes. I guess this is more of a CSS question ;) Bj
b2 - benbiddington@surf4nix.com
 
you can customize the border of a textbox. For example:

<input tyoe=&quot;text&quot; style=&quot;border:1px solid black&quot;>

oh yeah, to programatically scroll a div, set its scrollTop property. jared@aauser.com -
 
Cool - I try it! ;)
b2 - benbiddington@surf4nix.com
 
Yep - you're absolutely right, that works like a charm with divs, set to overflow:hidden. I am going to try it on other things with their scrollbars hidden, and see if that works too. Good work ;)
b2 - benbiddington@surf4nix.com
 
you can also set the overflow-x and overflow-y individually. scrollTop should work when the overflow is set to scroll or auto also. jared@aauser.com -
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top