笔记本电脑或是台式机
互联网
jQuery
仿Komodo Media的jQuery星级评分插件
基本方法:$('#demo1').rater('ratingsdemo.php');
通过参数你可以切换显示样式$('#demo2').rater('ratingsdemo.php', {style: 'small'});
你可以设置它们为行内(inline)样式$('#inline1').rater('ratingsdemo.php', {style: 'inline'});$('#inline2').rater('ratingsdemo.php', {style: 'inline', curvalue:3});
只显示一颗星星,就像一个开关$('#demo4').rater('ratingsdemo.php', {maxvalue:1, style: 'basic'});
最基本的样式$('#demo5').rater('ratingsdemo.php', {style: 'basic', curvalue:2});
5颗星星$('#demo6').rater('ratingsdemo.php', {maxvalue:10, style: 'basic', curvalue:0});
你也可以定制你想要的星星数量$('#demo6').rater('ratingsdemo.php', {maxvalue:10, style: 'basic', curvalue:0});
新建项目文件夹,引入以下文件:
jQuery Helper for Komodo Media CSS Star Rater (Redux)
Dynamicly create a Ajax rater
/** * jQuery Ajax Rater Plugin * * This rater is based on the code Ritesh Agrawal did. Unfortunatly his CSS and the hover technique breaks in some browsers. * So i thought, why not use the best CSS star-rater known to man kind and throw it in the mix. * I have used the CSS and technique from Komodo Media since it is stable and tested on many, many browsers. * * This rater compared, has no cancel button. But i think we can live with that :) * To avoid conflicts i have changed the function name. * * Licensed under The MIT License */
Basic
$('#demo1').rater('ratingsdemo.php'); Small
$('#demo2').rater('ratingsdemo.php', {style: 'small'}); Inline
and
$('#inline1').rater('ratingsdemo.php', {style: 'inline'});
$('#inline2').rater('ratingsdemo.php', {style: 'inline', curvalue:3}); Single Star (GMail style)
$('#demo4').rater('ratingsdemo.php', {maxvalue:1, style: 'basic'}); Basic, with initial value
$('#demo5').rater('ratingsdemo.php', {style: 'basic', curvalue:2}); Basic, but more then 5 stars
$('#demo6').rater('ratingsdemo.php', {maxvalue:10, style: 'basic', curvalue:0}); Or Small.. doesn't matter
$('#demo7').rater('ratingsdemo.php', {maxvalue:20, style: 'small', curvalue:3}); Basic,运行效果如下图所示:
Small,运行效果如下图所示:
Inline,运行效果如下图所示:
Single Star (GMail style),运行效果如下图所示:
Basic, with initial value,运行效果如下图所示:
Basic, but more then 5 stars,运行效果如下图所示:
Or Small.. doesn't matter,运行效果如下图所示:
该插件依赖于JQuery库,需要引入JQuery库文件
- 1
仿Komodo Media的jQuery星级评分插件使用攻略
- 2
点卡换卡方法
- 3
一卡通兑换平台如何选择一卡通互换更安全
- 4
解决电脑软件卡死的办法
- 5
TQIMX6UL在Linux平台下制作SD启动卡
- 6
武林外传手游劳逸结合任务怎么过
- 7
武林外传手游水草舞怎么获得
- 8
武林外传140级三职业剑技能怎么加
- 9
武林外传幽灵进攻任务怎么接?
- 10
武林外传手游岸上哭声隐藏任务怎么触发
- 11
steam平台下载速度慢解决方案
- 12
什么是卡盟?卡盟如何去使用操作
- 13
LOL寒冰射手入门操作技巧
- 14
网站更新后网页打开速度很慢,网站很卡解决方法
- 15
Windows电脑系统卡顿有哪些解决办法?
- 16
在互联卡盟,购买的卡号密码错误怎么办?
- 17
百香果壳怎么利用起来
- 18
华润银行资产交易平台注册绑卡教程
- 19
LOL英雄联盟经常闪退怎么办
- 20
考研成绩查询时显示密码错误的处理方法
- 21
如何保存准考证页面,然后进行打印
