Download
User Rating: 2.8/5 ( 10 votes)
This is a jQuery plugin for star rating systems. The initial inspiration for this script came from Wil Stuckey's star rating system. But the original script requires too much coding. Also it does not have provision for developing a star system (such as GMail, where you star or un-star an email). I have modified the original script to make it simpler for user to develop a star rating system. Check the demo below — hover and click on stars to change their state
How to use
Include Javascript and css
jquery.rating.js
rating.css
Examples
Default with max value
$('#star1').rating('www.url.php', {maxvalue:1});
Example with current value
$('#star2').rating('www.url.php', {maxvalue:1, curvalue:1});
Example with half star
$('#rate1').rating('www.url.php', {maxvalue:5, increment:.5});
As you might have noticed, for a single star the script works like a star/unstar. For two or more stars, it works as a rating system. The value can be received at the server end via post variable named "rating".