|
@@ -68,12 +68,86 @@ $(function(){
|
|
|
e.preventDefault();
|
|
|
$("body,html").animate({scrollTop:0},1000)
|
|
|
});
|
|
|
-// $(window).scroll(function(){
|
|
|
-// var scrolltop=$(document).scrollTop()
|
|
|
-// if(scrolltop>700){
|
|
|
-// $('.pendent_box').fadeIn(200);
|
|
|
-// }else{
|
|
|
-// $('.pendent_box').fadeOut(200);
|
|
|
-// }
|
|
|
-// });
|
|
|
+ //登陆页面
|
|
|
+
|
|
|
+ var hht=$(window).height();
|
|
|
+ $('.login').height(hht);
|
|
|
+ $('#Lo_user').focus(function(){
|
|
|
+ var use=$(this).val()
|
|
|
+ if(use=='用户名/邮箱/手机'){
|
|
|
+ $(this).val('').css({color:'#333333'})
|
|
|
+ }
|
|
|
+
|
|
|
+ })
|
|
|
+ $('#Lo_user').blur(function(){
|
|
|
+ var use=$(this).val();
|
|
|
+ if(use==''){
|
|
|
+ $(this).val('用户名/邮箱/手机').css({color:'#cccccc'})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('#Lo_pass').focus(function(){
|
|
|
+ var use=$(this).val()
|
|
|
+ if(use=='请输入密码'){
|
|
|
+ $(this).attr('type',"password");
|
|
|
+ $(this).val('').css({color:'#333333'});
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('#Lo_pass').blur(function(){
|
|
|
+ var use=$(this).val();
|
|
|
+ if(use==''){
|
|
|
+ $(this).attr('type',"text");
|
|
|
+ $(this).val('请输入密码').css({color:'#cccccc'})
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $('#checks').attr('checked',true)
|
|
|
+ $('#checks').click(function(){
|
|
|
+ var Cheack=$(this).prop('checked')
|
|
|
+ if(Cheack){
|
|
|
+ $(this).parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ $('#checkst').prop('checked',false)
|
|
|
+ $('#checkst').parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ }else{
|
|
|
+ $('#checkst').prop('checked',true)
|
|
|
+ $('#checkst').parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ $(this).parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('#checkst').click(function(){
|
|
|
+ var Cheack_no=$(this).prop('checked')
|
|
|
+ if(Cheack_no){
|
|
|
+ $(this).parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ $('#checks').prop('checked',false)
|
|
|
+ $('#checks').parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ }else{
|
|
|
+ $('#checks').prop('checked',true)
|
|
|
+ $('#checks').parent().css({"background":"url(../img/check_lo.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ $(this).parent().css({"background":"url(../img/check_lono.png) no-repeat center left","background-size":"34% 40%"})
|
|
|
+ }
|
|
|
+ })
|
|
|
+ //点击x
|
|
|
+ $('.log_del').click(function(){
|
|
|
+ $('#Lo_user').val('');
|
|
|
+ $('#Lo_user').focus();
|
|
|
+ $('#Lo_user').css({color:'#333333'});
|
|
|
+ })
|
|
|
+// 登陆事件
|
|
|
+ $('.login').hide()
|
|
|
+ $('.head_login').click(function(e){
|
|
|
+ e.preventDefault();
|
|
|
+ $('.login').fadeIn(800)
|
|
|
+ })
|
|
|
+ $('.login_close').click(function(){
|
|
|
+ $('.login').fadeOut(800)
|
|
|
+ })
|
|
|
+ $('form').submit(function(){
|
|
|
+ var Suser=$('#Lo_user').val();
|
|
|
+ var Spass=$('#Lo_pass').val();
|
|
|
+ if(Suser==''||Spass==''||Suser=='用户名/邮箱/手机'||Spass=='请输入密码'){
|
|
|
+ return false;
|
|
|
+ }else{
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+
|
|
|
})
|