jRating is a very flexible jQuery plugin for quickly creating an Ajaxed star rating system. It is possible to configure every details from "the number of the stars" to "if the stars can represent decimals or not". There is also an option to display small or big stars and images can be changed with any other file easily.
Although jRating can be used with any scripting language, a PHP file that handles the requests is already included in the download package on github
IMPLEMENTATION:
1. FIRST, INCLUDE THE CSS & JQUERY FILES
2. ADD YOUR HTML
3. NOW, CALL THE JRATING PLUGIN
OPTIONS:
showRateInfoBooleanDefault : true - Disable the rate info. Can be set to true or false
bigStarsPathStringDefault : 'jquery/icons/stars.png' - Relative path of the large star picture (stars.png).
smallStarsPathStringDefault : 'jquery/icons/small.png' - Relative path of the small star picture (small.png).
phpPathStringDefault : 'php/jRating.php' - Relative path of the PHP page (jRating.php).
typeStringDefault : 'big' - Appearance type. Can be set to 'small' or 'big'.
stepBooleanDefault : false - If set to true, filling of the stars is done star by star (step by step).
isDisabledBooleanDefault : false - If set to true, jRating is disabled
lengthIntegerDefault : 5 - Number of star to display.
decimalLengthIntegerDefault : 0 - Number of decimals in the rate
rateMaxIntegerDefault : 20 - Maximal rate
rateInfosXIntegerDefault : 45 - In pixel - Absolute left position of the information box during mousemove.
rateInfosYIntegerDefault : 5 - In pixel - Absolute top position of the information box during mousemove.
METHODS:
onSuccessFunctionReturns : null - Callback function in case of success during rating.
onErrorFunctionReturns : null - Callback function in case of failure during rating.