图片禁止拖动

添加到后台自定义css

body img { -webkit-user-drag: none; }

图片呼吸灯

添加到后台自定义css

    img{-webkit-animation:ani 2s linear infinite;}@keyframes ani{0%{box-shadow:0 0 0px #00BCD4;}25%{box-shadow:0 0 10px #00BCD4;}50%{box-shadow:0 0 20px #00BCD4;}75%{box-shadow:0 0 10px #00BCD4;}100%{box-shadow:0 0 0px #00BCD4;}}

禁用debug调试

放到前面

<script>
    function checkDebugger(){var d=new Date();debugger;var dur=Date.now()-d;if(dur<5){return false}else{return true}}function breakDebugger(){if(checkDebugger()){breakDebugger()}};breakDebugger();
</script>

崩溃欺骗

第一种:

<link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.9.2/theme-chalk/index.css" rel="stylesheet" />
<script src="./vue.js"></script>
<script src="./element.js"></script>
<script>
    document.addEventListener("copy",function(e){
    new Vue({
        data:function(){
            this.$notify({
                title:"复制成功",
                message:"若要转载请务必保留原文链接!",
                type:"success"
            });
            return{visible:false}
        }
    })
    })
</script>

第二种:

<link href="https://cdn.bootcdn.net/ajax/libs/element-ui/2.9.2/theme-chalk/index.css" rel="stylesheet" />
<script src="./vue.js"></script>
<script src="./element.js"></script>
<script src="./sweet.js"></script>
<script>
    document.body.oncopy = function () { 
        Swal.fire({ 
            allowOutsideClick: false,
            type: "success", 
            title: "复制成功,如转载请注明出处!", 
            showConfirmButton: false, 
            timer: 1500 
        }) 
    };
</script>

需要的js:
点击下载

打字特效

<script type="text/javascript" src="./commentTyping.js"></script>

顶部跑马灯

点击下载

<style>
    #top-grrk{
    background:url(https://external-30160.picsz.qpic.cn/e94ff0137dfb6cc51925d4ccf61d2541);
    height:2px;
    position:fixed;
    width:100%;
    Z-index:10000;
}
</style>    
<div id="top-grrk"></div>
最后修改:2021 年 07 月 14 日 02 : 33 PM
如果觉得我的文章对你有用,请随意赞赏