Dynamic score setting with jQuery
Add-ons

Plugin description: Dynamically sets scores using jQuery. Values, colors, and styles can all be customized. Compatible with IE7.
Usage
DOM structure
1 | <div class="score"></div> |
js
1 2 3 4 5 6 7 | var s = new Score({ node:string, score:number, width:number, height:number, bgColor:string,}) |
Properties
| Parameters | Description | Type |
| node | Nodes | string |
| score | Score | number |
| width | Width | number |
| height | Height | number |
| bgColor | Background color | string |
| true | Default display text value | Boolean |
Methods
-- s.setScore(num) Dynamically sets the score.
-- s.disScore(boolean) Dynamically sets whether to display the text.
-- s.setTextColor(string) Dynamically sets the text color.
-- s.getScore() Dynamically gets the score (returns a number).
评论