jQuery满意度星级评价插件特效代码分享_jquery
这是一款基于jQuery 的星级评分效果实例,鼠标滑过星星区域显示评论信息提交内容,适用在评论表单里面,是表单美化提交内容的一种用户体验设计。
为大家分享的jQuery满意度星级评价插件特效代码如下
<head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>满意度jQuery星级评分插件</title> <script type="text/javascript" src="js/jquery-1.4.2.min.js"></script> <script type="text/javascript" src="js/comment.js"></script> </head> <body> <style type="text/css"> *{margin:0;padding:0;list-style-type:none;} a,img{border:0;} body{font:12px/180% Arial, Helvetica, sans-serif;} /*quiz style*/ .quiz{border:solid 1px #ccc;height:270px;width:772px;} .quiz h3{font-size:14px;line-height:35px;height:35px;border-bottom:solid 1px #e8e8e8;padding-left:20px;background:#f8f8f8;color:#666;position:relative;} .quiz_content{padding-top:10px;padding-left:20px;position:relative;height:205px;} .quiz_content .btm{border:none;width:100px;height:33px;background:url(images/btn.gif) no-repeat;margin:10px 0 0 64px;display:inline;cursor:pointer;} .quiz_content li.full-comment{position:relative;z-index:99;height:41px;} .quiz_content li.cate_l{height:24px;line-height:24px;padding-bottom:10px;} .quiz_content li.cate_l dl dt{float:left;} .quiz_content li.cate_l dl dd{float:left;padding-right:15px;} .quiz_content li.cate_l dl dd label{cursor:pointer;} .quiz_content .l_text{height:120px;position:relative;padding-left:18px;} .quiz_content .l_text .m_flo{float:left;width:47px;} .quiz_content .l_text .text{width:634px;height:109px;border:solid 1px #ccc;} .quiz_content .l_text .tr{position:absolute;bottom:-18px;right:40px;} /*goods-comm-stars style*/ .goods-comm{height:41px;position:relative;z-index:7;} .goods-comm-stars{line-height:25px;padding-left:12px;height:41px;position:absolute;top:0px;left:0;width:400px;} .goods-comm-stars .star_l{float:left;display:inline-block;margin-right:5px;display:inline;} .goods-comm-stars .star_choose{float:left;display:inline-block;} /* rater star */ .rater-star{position:relative;list-style:none;margin:0;padding:0;background-repeat:repeat-x;background-position:left top;float:left;} .rater-star-item, .rater-star-item-current, .rater-star-item-hover{position:absolute;top:0;left:0;background-repeat:repeat-x;} .rater-star-item{background-position: -100% -100%;} .rater-star-item-hover{background-position:0 -48px;cursor:pointer;} .rater-star-item-current{background-position:0 -48px;cursor:pointer;} .rater-star-item-current.rater-star-happy{background-position:0 -25px;} .rater-star-item-hover.rater-star-happy{background-position:0 -25px;} .rater-star-item-current.rater-star-full{background-position:0 -72px;} /* popinfo */ .popinfo{display:none;position:absolute;top:30px;background:url(images/comment/infobox-bg.gif) no-repeat;padding-top:8px;width:192px;margin-left:-14px;} .popinfo .info-box{border:1px solid #f00;border-top:0;padding:0 5px;color:#F60;background:#FFF;} .popinfo .info-box div{color:#333;} .rater-click-tips{font:12px/25px;color:#333;margin-left:10px;background:url(images/comment/infobox-bg-l.gif) no-repeat 0 0;width:125px;height:34px;padding-left:16px;overflow:hidden;} .rater-click-tips span{display:block;background:#FFF9DD url(images/comment/infobox-bg-l-r.gif) no-repeat 100% 0;height:34px;line-height:34px;padding-right:5px;} .rater-star-item-tips{background:url(images/comment/star-tips.gif) no-repeat 0 0;height:41px;overflow:hidden;} .cur.rater-star-item-tips{display:block;} .rater-star-result{color:#FF6600;font-weight:bold;padding-left:10px;float:left;} </style> <center><br> <div class="quiz"> <h3 id="我要评论">我要评论</h3> <div class="quiz_content"> <form action="" id="" method="post"> <div class="goods-comm"> <div class="goods-comm-stars"> <span class="star_l">满意度:</span> <div id="rate-comm-1" class="rate-comm"></div> </div> </div> <div class="l_text"> <label class="m_flo">内 容:</label> <textarea name="" id="" class="text"></textarea> <span class="tr">字数限制为5-200个</span> </div> <button class="btm" type="submit"></button> </form> </div><!--quiz_content end--> </div><!--quiz end--> </center> </body> </html>
运行效果图:
以上就是为大家分享的jQuery满意度星级评价插件特效代码,希望大家可以喜欢。

热AI工具

Undresser.AI Undress
人工智能驱动的应用程序,用于创建逼真的裸体照片

AI Clothes Remover
用于从照片中去除衣服的在线人工智能工具。

Undress AI Tool
免费脱衣服图片

Clothoff.io
AI脱衣机

Video Face Swap
使用我们完全免费的人工智能换脸工具轻松在任何视频中换脸!

热门文章

热工具

记事本++7.3.1
好用且免费的代码编辑器

SublimeText3汉化版
中文版,非常好用

禅工作室 13.0.1
功能强大的PHP集成开发环境

Dreamweaver CS6
视觉化网页开发工具

SublimeText3 Mac版
神级代码编辑软件(SublimeText3)

热门话题

Python和JavaScript开发者的薪资没有绝对的高低,具体取决于技能和行业需求。1.Python在数据科学和机器学习领域可能薪资更高。2.JavaScript在前端和全栈开发中需求大,薪资也可观。3.影响因素包括经验、地理位置、公司规模和特定技能。

JavaScript是现代Web开发的基石,它的主要功能包括事件驱动编程、动态内容生成和异步编程。1)事件驱动编程允许网页根据用户操作动态变化。2)动态内容生成使得页面内容可以根据条件调整。3)异步编程确保用户界面不被阻塞。JavaScript广泛应用于网页交互、单页面应用和服务器端开发,极大地提升了用户体验和跨平台开发的灵活性。

如何在JavaScript中将具有相同ID的数组元素合并到一个对象中?在处理数据时,我们常常会遇到需要将具有相同ID�...

深入探讨console.log输出差异的根源本文将分析一段代码中console.log函数输出结果的差异,并解释其背后的原因。�...

实现视差滚动和元素动画效果的探讨本文将探讨如何实现类似资生堂官网(https://www.shiseido.co.jp/sb/wonderland/)中�...

学习JavaScript不难,但有挑战。1)理解基础概念如变量、数据类型、函数等。2)掌握异步编程,通过事件循环实现。3)使用DOM操作和Promise处理异步请求。4)避免常见错误,使用调试技巧。5)优化性能,遵循最佳实践。

探索前端中类似VSCode的面板拖拽调整功能的实现在前端开发中,如何实现类似于VSCode...
