替代 jquery 评级插件?
标题不是很说明问题,但我会尽力解释。
我正在寻找一个 jquery 评级插件,其行为类似于标准星级评级,但根据所选值支持不同的图像和颜色
,比例为 1-10:
- 例如,悬停或选择所有图像/颜色时 1-3悬停或选择时为红色
- 4-7 所有图像/颜色均为黄色
- 悬停或选择时为 8-10 所有图像/颜色均为绿色
因此,如果有人知道是否有东西存在,将为我节省大量创建新插件的时间。
The title is not very illustrating, but I'll try to explain.
I'm looking for a jquery rating plugin which behaves like a standard star rating, but supports different images and colors depending on the selected value
For example, on the scale of 1-10:
- 1-3 when hovered or selected all images/colors are red
- 4-7 when hovered or selected all images/colors are yellow
- 8-10 when hovered or selected all images/colors are green
I found this and this. but they don't quite do what I'm looking for.
So if anyone knows if there is something out there will save me a lot of time for creating a new plugin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为什么不自己做呢?我已经构建了一个小演示来证明这是可能的: http://jsfiddle.net/s2zPW/18/ 。
代码也不难:
HTML:
JavaScript:
Why not make your own? I've already built a little demo to show that it's possible: http://jsfiddle.net/s2zPW/18/.
The code isn't that hard either:
HTML:
JavaScript: