JQuery star rating script


Hello, after several months of development here is a new version of the star rating script, now supporting multiple ratings (for products, images etc..) . It has been rewritten from scratch, now based on the jquery javascript library.
You can give it a try here: DEMO


Usage:
1. Just have a blank <div> tag with an id of the product that you want: like for example: <div id="123"></div>
and the script will automatically build star rating for your product based on the provided id.
2. Initialize the script for ids that you only want to have rating:
stars.init("123","7","9","6ghgh");
3. Enjoy!

Sample setup:

<script src="jquery.min.js"><script>
<script src="/star_rating/star_rating.js"><script>

<div id="1">Vote now<div>

<div id="7">Here you go<div>

<div id="6ghgh">Your choice<div>

<div id="9">How are you?<div>

<script>$(function() 
{
stars.init("1","7","9","6ghgh");
}
);
<script>


Pro's:
- limited database requests - saving precious db server usage!
- responsive script using tiny JSON notation packets
- fastest star generation & navigation using CSS only styles


0 коментара: