• 彩色签名


    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title></title>
        </head>
        <style type="text/css">
            .active{
                 10px;
                height: 10px;
                position: absolute;
                border-radius: 50%;
            }
        </style>
        <body>
        </body>
    </html>
    <script src="public.js">
    </script>
    <script>
        /*
        涉及的事件 :
        onmousedown
        onmousemove : 创建div 并设置div的位置 为鼠标当前位置
        onmouseup : 取消移动
         */
        document.onmousedown = function(e){
            e.preventDefault();
            document.onmousemove = function(e){
                var e = e || event;
                var oDiv = create("div");
                oDiv.className = "active";
                document.body.appendChild(oDiv);
                oDiv.style.backgroundColor = getColor();
                oDiv.style.left = e.pageX + "px";
                oDiv.style.top = e.pageY + "px";
            }
            document.onmouseup = function(){
                document.onmousemove = null;//取消移动
            }
            
            //return false;
        }
    </script>
  • 相关阅读:
    64位windows 7下配置TortoiseGit(转)
    linux中fork函数详解(转)
    Socket通信的Python实现
    Socket
    浅谈CSRF攻击方式(转)
    Burpsuite常用模块详解以及渗透测试上的运用
    大佬内网渗透技巧的独白(思路篇)
    CTFcrackTools-V3
    厂商要知道的漏洞防护措施
    如何运用kali-xplico网络取证分析?点开看看吧
  • 原文地址:https://www.cnblogs.com/tis100204/p/10319180.html
Copyright © 2020-2023  润新知