Making a scrollbar with javascript
I'm trying to make a scrollbar with JavaScript (jQuery) and Divs. I'm not using any plugin because I can't use it because what i'm doing it's an app for a TV.
I've also read some code from a few plugins but with no luck...
This is what i got http://jsfiddle.net/joseadrian/HEp7U/2/ But what i'm trying 开发者_StackOverflow中文版to do is a copy of the real scrollbar on his left. And I need those buttons 'Subir'(Up) and 'Bajar'(Down) because you can't use a mouse, only the TV Control.
What am I doing wrong?
I hope you can understand me. Thanks in advance.
It seems to be working fine here: http://jsfiddle.net/maniator/HEp7U/7/
Here is a version based off yours where you can see the start and the end: http://jsfiddle.net/maniator/CsJ79/
精彩评论