jQuery星级 [英] JQuery Star Rating

查看:87
本文介绍了jQuery星级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能建议一个简单的JQuery五星级评级脚本,该脚本易于设置.我只需要在单个页面上创建一个实例.我不在乎它是否写入文件或mysql数据库以计算平均评分.

它应该显示投票数和计算得出的平均值.它还应检查该人是否已经评分或一次不允许超过2个评分.应该具有cookie或会话,以防止出现多个评分或其他某种机制.

我不在乎它是免费的还是花钱的,但是许可应该允许我在商业应用中使用它.

感谢所有建议!谢谢!

P.S.我花了两天时间在网上尝试不同的脚本,但没有找到任何实际完成的东西.

解决方案

这看起来不错:
http://www.fyneworks.com/jquery/star-rating/

但是您将需要更多的后端,以确保人们不会两次投票并获得平均投票数.投票需要存储在某个地方(或按当前平均值计算),并且是否已经投票的用户也应该存储在服务器上.

此链接可以告诉您一些服务器端需要完成的工作: http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/

Can anyone suggest a simple JQuery five star rating script that is easy to setup. I just need a single instance on a single page. I don't care if it writes to a file or mysql database to calculate rating average.

It should display the number of votes and the calculated average. It should also check if the person has already rated or should not allow more than 2 ratings at a time. Should have cookies or sessions to prevent multiple ratings or some other mechanism.

I don't care if its free or cost money but the licensing should allow me to use it in commercial applications.

Appreciate all suggestions! Thank you!

P.S. I spent a couple of day trying different scripts online but have not found anything that was actually complete.

解决方案

This looks nice:
http://www.fyneworks.com/jquery/star-rating/

But you will need more of a backend to make sure people can't vote twice and to get an average of number of votes. The votes need to be stored somewhere (or at leas the current average) and whether or not a user voted already should be stored on the server too.

This link can tell you about some of the server-side stuff that needs to be done: http://www.yvoschaap.com/index.php/weblog/css_star_rater_ajax_version/

这篇关于jQuery星级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆