12.04
Every once in a while I’m using one of the freely available JavaScript classes to generate a web2.0ish content rating function. Somehow I felt like creating my own. Of course I don’t wanna hold it back… so… here it is. Enjoy!
Features
- Fully Customizable
- Ajax Request
- Callback
- Lightweight
Examples
The behavior can be easily changed by customizing following parameters
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | var options = { scale: 5, initialValue: 0, locked: false, lockAfterRating: false, setBackAfterRating: false, ID: 'example-004', ajax: true, ajaxMethod: 'post', ajaxAction: 'ajax-request-processor.php', ajaxVariable: 'Rating', ajaxAdditional: '&OptionalVar=123', callFunction: true, callFunctionName: 'callbackExample', starFilled: '../images/star-2-filled.png', starEmpty: '../images/star-2-empty.png' }; new JaZzStars(options); |
Download
JaZz Stars 1.0.1 - JavaScript Content Rating Class (59.4 KiB, 137 hits)
Changelog:
2009-12-04 – 1.0.1
- Minor fixes
2009-12-04 – 1.0
- Initial Release
No Comment.
Add Your Comment