当前位置: 首页 > news >正文

郑州的网站建设公司哪家好网站建设 石家庄

郑州的网站建设公司哪家好,网站建设 石家庄,网站提升权重,黄页引流推广网站入口转载自 jQuery Raty星级评分插件使用方法 使用jQuery Raty#xff0c;可以很方便的在页面上嵌入一个评分组件#xff0c;如下所示#xff1a; 使用方法很简单#xff0c;首先从https://github.com/wbotelhos/raty下载raty的源代码#xff08;依赖于jquery#xff09; …转载自  jQuery Raty星级评分插件使用方法  使用jQuery Raty可以很方便的在页面上嵌入一个评分组件如下所示 使用方法很简单首先从https://github.com/wbotelhos/raty下载raty的源代码依赖于jquery 然后在页面中引入相应的js文件、css文件、图片资源在需要添加评分组件的元素上比如span标签添加下面的jquery代码即可 $(span).raty();以上为jQuery Raty的缺省使用方法此外该组件还支持丰富的传入参数和回调函数例如 设置jQuery Raty的初始评分 评分回调函数 如果需要根据后台动态设置初始评分可以使用回调函数实现。例如使用div中的data-attribute属性 div data-score1/div $(div).raty({score: function() {return $(this).attr(data-score);} });还可以改变星星的个数 $(div).raty({ number: 10 });只读模式 $(div).raty({ readOnly: true, score: 3 });点击事件 $(div).raty({click: function(score, evt) {alert(ID: this.id \nscore: score \nevent: evt);} });路径 变更图标保存的位置所有图标需要位于同一目录下路径结尾的/不添加也可以 div data-pathassets/images/div $(div).raty({path: function() {return this.getAttribute(data-path);} });取消评分 $(div).raty({ cancel: true });全局改变设置 你可以全局更改上述提到的所有设置 $.fn.raty.defaults.OPTION VALUE;. 该语句必须添加在插件绑定之前。 $.fn.raty.defaults.path assets; $.fn.raty.defaults.cancel true;参数列表 cancel : false // Creates a cancel button to cancel the rating. cancelClass : raty-cancel // Name of cancels class. cancelHint : Cancel this rating! // The cancels button hint. cancelOff : cancel-off.png // Icon used on active cancel. cancelOn : cancel-on.png // Icon used inactive cancel. cancelPlace : left // Cancels 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 its 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. 回调函数列表 $(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.
http://wiki.neutronadmin.com/news/343779/

相关文章:

  • 网站建设怎么在图片上加字万网域名管理入口
  • 语言可以做网站吗江苏省城乡建设部网站首页
  • 温州58同城怎么做网站大型网站建设机构哪家好
  • 开网络公司做网站挣钱么wordpress模板电商
  • 推广 高端网站建设网站修改标题
  • 外贸企业做网站义乌公司网站
  • 石家庄网站设计工作室想开发自己的网站
  • 汕头好的建站网站百度免费网站申请注册
  • 怎么做二级网站域名将page转换为wordpress
  • 建设一个电商网站北京 一图看懂 最新
  • 莆田网站建设公司互联网销售
  • 常用网站推荐网址生成app
  • 鹤岗北京网站建设icp备案查询网官网
  • 建设电商网站天津关键词搜索排名
  • 手机网站 wap医疗器械网站建设方案
  • 杭州做公司网站北海网站制作
  • 浙江省财务开发公司官网seo信息编辑招聘
  • 对网站建设提建议网站如何做搜索引擎优化
  • 建设网站网站首页模板制作安装
  • 网站建设基础课件做热区的网站
  • 南京网站建设 个人网站建设方案书 内容管理制度
  • 网站空间怎样设置用户名和密码wordpress栏目页只显示标题
  • 入侵网站怎么做弹出wordpress微信分享网页带图
  • 做电子签章登录那个网站建网站需要多大的宽带
  • 建设网站的规划书支付的网站建设费整么做账
  • 淘宝客网站建设外贸营销策划方案
  • 购买网站域名网站后台账号密码破解
  • 网站建设的工作总结雄安免费网站建设方案
  • 网络营销网站建设的角度做网站需要做h5吗
  • 东莞网站建设托管秦皇岛 免费建网站