一款非常实用支持小数的jQuery星级评分插件,五角星星级打分代码,还支持整数打分,样式图片也可以修改。
js代码
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/markingSystem.js"></script>
<script type="text/javascript">
$("#star_grade").markingSystem({
num: 5,
havePoint: true,
haveGrade: true,
unit: '星',
grade: 2.5,
height: 20,
width: 20,
})
$("#star_grade1").markingSystem({
backgroundImageInitial: 'images/love_gary.png',
backgroundImageOver: 'images/love_red.png',
num: 5,
havePoint: false,
haveGrade: true,
unit: '星',
grade: 3,
height: 30,
width: 30,
})
$("#star_grade2").markingSystem({
backgroundImageInitial: 'images/face_ku_bottom.png',
backgroundImageOver: 'images/face_ku_top.png',
num: 5,
havePoint: true,
haveGrade: true,
unit: '星',
grade: 1
})
$("#star_grade3").markingSystem({
backgroundImageInitial: 'images/face_happy_bottom.png',
backgroundImageOver: 'images/face_happy_top.png',
num: 5,
havePoint: true,
haveGrade: true,
unit: '星',
grade: 1,
height: 32,
width: 32,
})
</script>
系统已开启自动识别垃圾评论机制,识别到的自动封号,下载出错或者资源有问题请联系全栈客服QQ 1915635791