资 源 简 介
Overview
onniRating is a simple script used to create rating boxes (for. Images, Videos, Articles etc.), onniRating is using prototype.js for framework.
How to use
Include Rating.js and prototype.js JavaScript files in your page(Note: You can download lates version of prototype JavaScript Framework from http://www.prototypejs.org/download
How to use code
```
new onniRating(element, options);
//element - HTML element or ID of HTML Element
//options
// 1. max_rate (integer) : Possible Max. Rating value (default is 5)
// 2. current_rate (integer) : Current Rating value (default is 1)
// 3. img_dir (string) : Directory of Star Images (default is blank)
// 4. notitle (bool) : Define is rating text will be used
// 5. onRate (function) : Function to execute after rating
// 6. beforeRate (function) : Function to execute before rating
// 7. outRate (function) : Function to execute if user don"t rate
//