Results 1 to 3 of 3
May 14, 2007, 13:36 #1
Up/Down hover scroll buttons for div?
Hi! I'm hoping to add a div into my site (e.g 800px high) but that only shows a small amount (e.g. 200px) of height. Then I'd like to position two buttons next to the div that can move the contents up or down when they are hovered over.
Has anybody seen a solution for this?
May 14, 2007, 14:20 #2
- Join Date
- Nov 2002
- Montréal, Canada
- 0 Post(s)
- 0 Thread(s)
You'll be needing the scrollHeight and scrollTop properties of your div. When you change scrollTop it changes the current scrolling location, scrollHeight is the total height of your div (even what you don't see).
May 14, 2007, 15:54 #3
I have seen a few examples so I'm going to attempt to use their code:
Thanks for your help.