Star rating system with JavaScript
Easy to use star rating system for your website, by pasting 1-2 code lines of provided javascript you can display the system on your site and allow the users to rate your content (pages, articles, photos, products, etc), you simply provide an unique item to be rated, e.g Product19, Product20, etc.
Samples with different options, total stars, etc
Features of the rating system:
- Very easy to integrate in your site, see "using the script" area for details.
- Loads and posts new votes without reloading the web page.
- Can be included in any html file type like html, htm, asp, php, etc.
- It saves data automatically in a plain file on server.
- OPTIONALLY it can also save data to a database (you define few variables like database username, password, table name).
- Easy to change stars by replacing the small images.
- Easy to customize looks and colors by editing existent CSS file.
- Can allow users to vote again after X seconds.
- Can also display half stars (or only full stars).
- You can define labels for each star clicked: good, bad, outstanding, etc.
- Easy to translate or change the texts.
- Ratings can also be displayed in read-only mode so users cannot post new votes
- You can set the total number of stars (usually 5 or 10) and can change this at any time without affecting the current vote results.
Using the rating script:
Unzip the files, upload the ratings folder on your server by FTP.
On the pages where you want rating system to appear, insert this code:
<script type="text/javascript">
rating_id = 'product_1';
</script>
<script type="text/javascript" src="/ratings/tnt_ratings.js"></script>
Where the value of "rating_id" is an unique item to be rated (article_20, photo_4, product_10, etc).
In background the component uses PHP to save the data, but you don't have to worry about that part.
What you receive:
After you complete the payment, the product will be delivered to you instantly as download.
You will receive a zip of files that can be opened on any operating system. The zip will contain html files, JavaScript file, PHP file and instructions.
If you will have any questions, just contact us.