This week's giveaway is in the Groovy forum.
We're giving away four copies of Groovy Fundamentals video training course and have Ken Kousen on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes Scrollbars, simultaneously Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Scrollbars, simultaneously" Watch "Scrollbars, simultaneously" New topic
Author

Scrollbars, simultaneously

Robertovich Wartins
Greenhorn

Joined: Nov 21, 2006
Posts: 16
Hello,

question about scrollbars: i need, that one scrollbar is scrolling if another scrollbar is scrolled (both are scrolling simultaneously). How can this be done?
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
look into onscroll and scrollTop or scrollLeft

Eric
Robertovich Wartins
Greenhorn

Joined: Nov 21, 2006
Posts: 16
thanks

this is solution:


and this is example code (maybe some one needs), but works only on IE (firefox seems to doesn't support onScroll):

 
wood burning stoves
 
subject: Scrollbars, simultaneously