jQuery粉色风格常用网页控件js代码

版权:原创 更新时间:1年以上
[该文章底部包含文件资源,可根据自己情况,决定是否下载资源使用,时间>金钱,如有需要,立即查看资源]

以下是 jQuery粉色风格常用网页控件js代码 的示例演示效果:

当前平台(PC电脑)
  • 平台:

部分效果截图:

jQuery粉色风格常用网页控件js代码

HTML代码(index.html):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>PINK-download</title>
<link type="text/css" href="style.css" rel="stylesheet" />
</head>

<body>

<div class="header leather">Pink</div>
<div class="wrapper">
        <div class="main">
              <fieldset>
                        <label>label</label>
                        
                        <div class="pinkCloud">
                             <textarea class="write"></textarea>
                             <p class="tips"></p>

                        </div>
                        
                        <ul class="rate">
                              <li></li><li></li><li></li><li></li><li></li><li></li><li></li><li></li>
                        </ul>
                        
                        <button class="box-shadow">button</button>
                        
                       
                        <div class="radio">
                             <div class="circle"></div>
                        </div>

                        <input type="text" value=""/>
                        
              </fieldset>
        </div>
</div>
</body>
</html>
<script type="text/javascript" src="js/jquery-1.7.min.js"></script> 
<script type='text/javascript'> 	
$(document).ready(function(){
						   
/*rating*/						   
	$(".rate li").hover(function(){
			$(".select").removeClass("select");

			$(this).prevAll().andSelf().addClass("hover");
			},
						function(){
			$(this).prevAll().andSelf().removeClass("hover");
			});
	
	$(".rate li").click(function(){
			$(this).prevAll().andSelf().addClass("select");
			})
	
	$(".radio").click(function(){
			$(this).toggleClass("checked");	
			$(".off,.on").toggleClass("hide");
			$(this).children(".circle").toggleClass("right");					
								})


/*Count Word*/
	var pos = 0;
	$(".write").keyup(function(){						
	var value =  $.trim($(".write").val());
	var len = 120 - value.length; 
	var sur = -len;
		if(len<0){
			if(sur>99){sur=99}
			$(".tips").html("<span class='red'>Exceed "+sur+"</span>");
		}
		else{
			$(".tips").html("<span>"+len+"/120</span>");
		}						  
	})
});
</script> 









CSS代码(style.css):

@charset "utf-8";/* CSS Document Download by http://www.veryhuo.com*/
*{margin:0;padding:0;}
body{background:url(images/bg-texture.jpg);font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;}
.clear{clear:both;}
/*============framework===============*/
.header{background:url(images/bg-content-topper.png) center no-repeat;width:960px;height:155px;margin:20px auto 0;color:#FF828E;text-align:center;font:bold 80px 'Bickham Script Pro','Edwardian Script ITC','Palace Script MT',Zapfino,cursive;line-height:200px;text-shadow:0 0 4px #FCC;}
.wrapper{width:960px;height:auto;margin:0 auto;}
.main{display:block;background:url(images/bg-content.png) center repeat-y;width:100%;height:420px;}
/*============basic===============*/
fieldset{width:790px;margin:0 auto;padding:10px;border:none;}
button{border:none;font-size:16px;outline:none;font-family:"Trebuchet MS",Arial,Helvetica,sans-serif;}
input[type='text']{background:none;width:300px;height:40px;display:block;margin:20px;outline:none;line-height:40px;font-size:24px;color:#333;border:none;border:2px solid #FF828E;box-shadow:2px 8px 6px -6px rgba(0,0,0,0.8);background:rgba(255,255,255,0.1);}
input[type='text']:focus{background:#FF828E;background:rgba(255,130,142,0.4);}
textarea{display:block;width:350px;height:180px;margin:50px 40px;overflow:hidden;outline:none;font-size:24px;line-height:30px;color:#333;border:none;border:2px solid #FF828E;background:rgba(255,255,255,0.1);}
textarea:focus{background:#FF828E;background:rgba(255,130,142,0.4);}
label{display:block;float:left;background:#FF828E;width:200px;height:60px;box-shadow:2px 8px 6px -6px rgba(0,0,0,0.8);font-size:28px;line-height:60px;text-align:center;color:#FFF;margin:20px;}
/*============rate===============*/
ul.rate{float:left;width:auto;height:35px;margin:20px;padding:0;}
li{background:url(images/icon_heart.png) no-repeat;float:left;display:inline;width:35px;height:35px;cursor:pointer;}
li.select{background-position:0 -35px;}
li.hover{background-position:0 -35px;}
/*============radioBox===============*/
.radio{float:left;background:#FFF;width:100px;height:40px;display:block;margin:20px;border:2px solid #FF828E;border-radius:30px;cursor:pointer;font-size:20px;color:#FF828E;line-height:40px;text-align:center;box-shadow:1px 1px 5px rgba(0,0,0,0.4);}
.radio.checked{background:#FF828E;color:#FFF;}
.circle{background:#FFF;margin-top:-2px;margin-left:-1px;float:left;width:40px;height:40px;border-radius:30px;border:2px solid #FF828E;}
.circle.right{margin-left:60px;}
.hide{display:none;}
.box-shadow{background:#FF828E;width:120px;height:40px;display:block;margin:20px;border-radius:30px;cursor:pointer;font-size:24px;line-height:40px;text-align:center;color:#fff;box-shadow:1px 1px 5px rgba(0,0,0,0.4);}
.box-shadow:active{filter:progid:DXImageTransform.Microsoft.Shadow(color='#969696',Direction=135,Strength=5);/*for ie6,7,8*/
 box-shadow:inset 1px 1px 5px rgba(0,0,0,0.4);}
.pinkCloud{background:url(images/box_about.png);width:435px;height:355px;float:right;}
.tips{display:block;width:200px;color:#999;margin:0 auto;text-align:center;}
.tips span{font:bold 34px Georgia,"Times New Roman",Times,serif;text-shadow:0 0 4px #CCC;padding:0 20px;}
span.red{color:#C00;font-size:30px;}
附件:下载该文件资源,减少时间成本(增值服务)
留言
该资源可下载
File Source
.rar
114.23 KB
jquery特效6
最新结算
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jquery虚拟键盘中文打字效果js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
HTML5实现CSS滤镜图片切换特效代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery头像裁剪插件cropbox js代码
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 2.31¥ 状态: 待结算 详细>
CSS3制作3D图片立方体旋转特效
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
jQuery+css3实现信封效果
类型: .rar 金额: CNY 0.29¥ 状态: 待结算 详细>
我们力求给您提供有用的文章,再此基础上,会附加营收资源,不做任何广告,让平台可以更好发展 若您发现您的权利被侵害,或使用了您的版权,请发邮件联系 sunlifel@foxmail.com ggbig觉得 : 不提供源码的文章不是好文章
合作伙伴
联系我们
  • QQ:21499807
  • 邮箱:sunlifel@foxmail.com
  • QQ扫一扫加QQ
    QQ扫一扫
Copyright 2023-2024 ggbig.com·皖ICP备2023004211号-1
打赏文章