• 手机版

    扫码体验手机版

  • 微信公众号

    扫码关注公众号

国内首家协议开发

软芯音视解码保护平台

在线
客服

发布
需求

在线
聊天

天盟
APP

天盟APP下载

关注
微信

微信扫一扫访问
顶部

我写完的js动画没有反应,没找到问题在哪,老师,求助一下,下面是我的代码

个人作品网                    
   

            
                        

                                       
  • 首页
                                       
  • 个人作品
                                       
  • 案例赏析
                                       
  • 联系我们
                                       
  • 商业合作
                            

            

            
                        
                                   


                        TOP

            


// JavaScript Document
        /*侧边栏隐藏*/
$(".dianji").click(function () {
            "use strict";
            $(".cehua_mask").fadeIn();
            $(".silder").css("right",0);
});
$(".cehua_mask").click(function () {
            "use strict";
            $(".cehua_mask").fadeOut();
            $(".silder").css("right",-300);
});
        /*到这里是侧边栏隐藏*/
        /*下面是置顶按钮*/
$(window).scroll(function(){
            "use strict";
            if($(window).scrollTop()>100){
                        $(".top").css("display","block");
            }
    else{
                        $(".top").css("display","none");
            }
});
$(".top").click(function(){
            "use strict";
            $("html").animate({
                        scrollTop:0
            },300);
});
/*置顶按钮到这里*/

/*侧滑栏*/
.cehua_mask{
            display: none;
            position: fixed;
            top: 0;
            bottom: 0;
            left: 0;
            right: 0;
            background: rgba(0,0,0,0.3);
}
.silder{
            background: #333;
            position: fixed;
            top: 0;
            right: -300px;
            bottom: 0;
            width: 300px;
            transition: 0.5s;
}
.silder ul li{
            margin-top: 30px;
            padding: 20px;
}
.silder ul li:hover{
            background: #7F7F7F;
}
.silder ul li a{
            color: #fff;
}
/*置顶按钮*/
.top{
            display: none;
            width: 50px;
            height: 30px;
            position: fixed;
            right: 30px;
            bottom: 120px;
}
.top p,img{
            width: 100%;
            text-align: center;
}

免责声明:本内容仅代表回答会员见解不代表天盟观点,请谨慎对待。

版权声明:作者保留权利,不代表天盟立场。

使用道具 举报

发新帖

发布任务需求已有1031165位用户正在使用天盟网服务

发布分类: *
任务预算: *
需求内容: *
手机号码: *
任务商家报价为
  • 预算价 :
  • 成交价 :
  • 完工期 :
  • 质保期 :

* 最终任务项目以服务商报价、双方协商为准!