垂直滑块,其中填充条根据所选值的大小改变颜色
我已经看过
jqueryui slider(目前已实现)
,到目前为止我更喜欢第一个和第四个选项,但理想情况下我需要一个滑块,具体取决于关于一个值有多大会改变其填充条颜色,所以说绿色= 0-3,黄色= 4-7,红色= 8-10。
任何人都知道任何其他滑块可以做到这一点,或者如何更改这些滑块来做到这一点。
我还需要记录滑块值,以防任何建议的滑块不这样做,并且可能会将滑块放置在图像上,以防任何建议的滑块可能内置该滑块,这将非常有利于该滑块作为我的选择。
任何帮助将不胜感激。
I've already looked at,
jqueryui slider (presently implemented)
which so far I prefer the 1st and 4th options but I ideally need a slider which depending on how large a value will change it's filled bar colour, so say green = 0-3, yellow = 4-7 red = 8-10.
Anybody know of any other sliders which can do this or instead on how to change any of these sliders to do it.
I also need to record the slider value in case any suggested sliders don't do that and am possibly going to place the slider over an image in case any suggested sliders might have that built in which would greatly favor that slider as my choice.
any help would be much appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是一个很好的起点。我所做的只是根据滑块的值更改滑块的背景颜色。
http://jsfiddle.net/HUXpg/1/
HTML:
CSS:(只是为了覆盖默认设置)
this could be a good place to start. All i've done is change the background colour of the slider based on the value of the slider.
http://jsfiddle.net/HUXpg/1/
HTML:
CSS: (just to override the default settings)