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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

JavaScript Moving Layer With Moving Scrollbar .... Is It Possible???

Status
Not open for further replies.

munkygomoo

Programmer
May 16, 2002
15
US
I'm working on building a site where certain pages have moving div layers ... I have them moving okay with JavaScript, but I want a scrollbar-type layer also to move. Take a look at for what I have so far. Can someone help make the div layer "divButton" move accordlingly with the div layer "divContent"? Thanx.
 
hi munkygomoo,

I would try taking the bump at the top of your scroll bar and making it a seperate image in a seperat DIV that was absolute positioned right there are the top. Then when you capture the click to scroll the window you can also move the absolute positioning of the little slidebar location image/div. The amount you would want it to move with each click, or time the window scrolled would be a function of the distance it has to scroll (the length of the scroll bar) / the length of the actuall scolling content.

If you need more help (or if I have entirely misunderstood you) please post some code so we can help more.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top