# jQuery Raty - A Star Rating Plugin
[![Build Status](https://img.shields.io/travis/wbotelhos/raty/master.svg)](https://travis-ci.org/wbotelhos/raty "Travis CI")
[![Dependency Status](https://david-dm.org/wbotelhos/raty.svg)](https://david-dm.org/wbotelhos/raty "Dependency Status")
[![Dev Dependency Status](https://david-dm.org/wbotelhos/raty/dev-status.svg)](https://david-dm.org/wbotelhos/raty#info=devDependencies "Dev Dependency Status")
[![Code Climate](https://codeclimate.com/github/wbotelhos/raty.png)](https://codeclimate.com/github/wbotelhos/raty "Code Climate")
[![Support jQuery Raty](http://img.shields.io/gittip/wbotelhos.svg)](https://www.gittip.com/wbotelhos "Git Tip")
## Version
```
@version 2.7.0
@since 2010.06.11
@author Washington Botelho
@doc wbotelhos.com/raty
```
## Dependencies
+ jquery.js
## Usage with Image
- jquery.raty.js
- star-off.png
- star-on.png
```html
<script src="jquery.raty.js"></script>
<div></div>
```
```js
$('div').raty();
```
## Usage with Font
- jquery.raty.js
- jquery.raty.[eot|svg|ttf|woff]
- jquery.raty.css
```html
<link rel="stylesheet" href="jquery.raty.css">
<script src="jquery.raty.js"></script>
<div></div>
```
```js
$('div').raty({ starType: 'i' });
```
## Bower Install
```js
bower install raty
```
See [bower.io](http://bower.io) for more information.
## Options
```js
cancel : false // Creates a cancel button to cancel the rating.
cancelClass : 'raty-cancel' // Name of cancel's class.
cancelHint : 'Cancel this rating!' // The cancel's button hint.
cancelOff : 'cancel-off.png' // Icon used on active cancel.
cancelOn : 'cancel-on.png' // Icon used inactive cancel.
cancelPlace : 'left' // Cancel's button position.
click : undefined // Callback executed on rating click.
half : false // Enables half star selection.
halfShow : true // Enables half star display.
hints : ['bad', 'poor', 'regular', 'good', 'gorgeous'] // Hints used on each star.
iconRange : undefined // Object list with position and icon on and off to do a mixed icons.
mouseout : undefined // Callback executed on mouseout.
mouseover : undefined // Callback executed on mouseover.
noRatedMsg : 'Not rated yet!' // Hint for no rated elements when it's readOnly.
number : 5 // Number of stars that will be presented.
numberMax : 20 // Max of star the option number can creates.
path : undefined // A global locate where the icon will be looked.
precision : false // Enables the selection of a precision score.
readOnly : false // Turns the rating read-only.
round : { down: .25, full: .6, up: .76 } // Included values attributes to do the score round math.
score : undefined // Initial rating.
scoreName : 'score' // Name of the hidden field that holds the score value.
single : false // Enables just a single star selection.
space : true // Puts space between the icons.
starHalf : 'star-half.png' // The name of the half star image.
starOff : 'star-off.png' // Name of the star image off.
starOn : 'star-on.png' // Name of the star image on.
target : undefined // Element selector where the score will be displayed.
targetFormat: '{score}' // Template to interpolate the score in.
targetKeep : false // If the last rating value will be keeped after mouseout.
targetScore : undefined // Element selector where the score will be filled, instead of creating a new hidden field (scoreName option).
targetText : '' // Default text setted on target.
targetType : 'hint' // Option to choose if target will receive hint o 'score' type.
starType : 'img' // Element used to represent a star.
```
## Functions
```js
$('div').raty('score'); // Get the current score.
$('div').raty('score', number); // Set the score.
$('div').raty('click', number); // Click on some star.
$('div').raty('readOnly', boolean); // Change the read-only state.
$('div').raty('cancel', boolean); // Cancel the rating. The last param force the click callback.
$('div').raty('reload'); // Reload the rating with the current configuration.
$('div').raty('set', { option: value }); // Reset the rating with new configurations.
$('div').raty('destroy'); // Destroy the bind and give you the raw element.
$('div').raty('move', number); // Move the mouse to the given score point position.
```
## Contributors
[Check it out](http://github.com/wbotelhos/raty/graphs/contributors)
## Licence
[The MIT License](http://opensource.org/licenses/MIT)
## Love it!
Via [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=X8HEP2878NDEG&item_name=jQuery%20Raty) or [Gittip](http://www.gittip.com/wbotelhos). Thanks! (:
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
前端jsp、jquery、bjui,后端 struts、spring、hibernate,集成公交查询、线路查询、站点地图、线路地图等功能于一体的系统。 毕业设计是高等教育阶段学生在完成学业前所进行的一项重要学术任务,旨在检验学生通过学习所获得的知识、技能以及对特定领域的深刻理解能力。这项任务通常要求学生运用所学专业知识,通过独立研究和创新,完成一个实际问题的解决方案或者开展一项有价值的项目。 首先,毕业设计的选择通常由学生根据个人兴趣、专业方向以及实际需求来确定。学生需要在导师的指导下明确研究目标、问题陈述,确立研究的范围和深度。毕业设计可以包括文献综述、需求分析、方案设计、实施与测试等多个阶段,以确保整个过程的科学性和系统性。 其次,毕业设计的完成通常需要学生具备一定的独立思考和解决问题的能力。在研究过程中,学生可能需要采用各种研究方法,如实验、调查、案例分析等,以获取必要的数据和信息。通过这些活动,学生能够培养扎实的专业技能,提升解决实际问题的实际能力。 第三,毕业设计的撰写是整个过程的重要组成部分。学生需要将研究过程、方法、结果以及结论等详细记录在毕业论文中,以展示其研究的全貌和成果。同时,撰写毕业设计还有助于提高学生的学术写作水平,培养清晰、逻辑的表达能力。 最后,毕业设计的评价通常由导师和相关专业人士进行。评价标准包括研究的创新性、实用性、方法的科学性以及论文的质量等方面。学生在毕业设计中获得的成绩也将直接影响其最终的学业成绩和学位授予。 总的来说,毕业设计是高等教育中的一项重要环节,通过此过程,学生不仅能够巩固所学知识,还能培养独立思考和解决问题的能力,为将来的职业发展奠定坚实的基础。
资源推荐
资源详情
资源评论
收起资源包目录
基于ssh的城市公交查询管理系统.zip (821个子文件)
bootstrap.css 170KB
bootstrap.css 120KB
bootstrap.min.css 107KB
style.css 61KB
font-awesome.css 28KB
font-awesome.min.css 23KB
default.css 20KB
core.css 15KB
core.css 15KB
core.css 15KB
core.css 15KB
core.css 15KB
labs.css 12KB
btn.css 9KB
shCore.css 7KB
zTreeStyle.css 6KB
bootstrap-select.css 6KB
core.css 6KB
layer.css 6KB
simplePagination.css 5KB
jquery.validator.css 5KB
mobileUI-modern.css 4KB
jasmine.css 4KB
bootstrap-colorpicker.css 4KB
style.css 4KB
style.css 4KB
mobileUI-beveled.css 4KB
style-mobile.css 4KB
shThemeEclipse.css 4KB
bootstrap-colorpicker.min.css 3KB
shThemeFadeToGrey.css 3KB
shThemeRDark.css 3KB
shThemeMidnight.css 3KB
shThemeDjango.css 3KB
shThemeEmacs.css 3KB
shThemeDefault.css 3KB
style-desktop.css 3KB
core-noscript.css 3KB
layer.ext.css 3KB
qq.css 3KB
style.css 3KB
slider.css 2KB
mobileUI-flat.css 2KB
simple.css 2KB
form.css 2KB
core-desktop.css 2KB
core-mobile.css 1KB
uploadify.css 1KB
css.css 1KB
jquery.raty.css 963B
prettify.css 960B
style-1000px.css 779B
core-1000px.css 403B
core-1200px.css 403B
core-fluid.css 383B
ie7.css 323B
editor-content.css 222B
style-ie9.css 218B
g.css 48B
Thumbs.db 46KB
fontawesome-webfont.eot 59KB
glyphicons-halflings-regular.eot 20KB
wbotelhos.eot 3KB
raty.eot 2KB
static.gif 35KB
35.gif 13KB
42.gif 13KB
40.gif 10KB
18.gif 8KB
19.gif 8KB
11.gif 8KB
32.gif 7KB
49.gif 6KB
29.gif 6KB
xubox_loading0.gif 6KB
zTreeStandard.gif 5KB
97.gif 5KB
65.gif 5KB
31.gif 5KB
46.gif 5KB
57.gif 5KB
45.gif 5KB
8.gif 5KB
43.gif 4KB
33.gif 4KB
68.gif 4KB
26.gif 4KB
14.gif 4KB
7.gif 4KB
51.gif 4KB
10.gif 4KB
47.gif 4KB
72.gif 4KB
6.gif 3KB
94.gif 3KB
84.gif 3KB
41.gif 3KB
17.gif 3KB
9.gif 3KB
28.gif 3KB
共 821 条
- 1
- 2
- 3
- 4
- 5
- 6
- 9
资源评论
JJJ69
- 粉丝: 6210
- 资源: 5783
下载权益
C知道特权
VIP文章
课程特权
开通VIP
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功