开发者

Making a scrollbar with javascript

开发者 https://www.devze.com 2023-04-05 00:29 出处:网络
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'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/

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号