zoukankan      html  css  js  c++  java
  • 鼠标移动有尾巴

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8"/>
            <title>无标题文档</title>
            <link href="css/font-awesome.css" rel="stylesheet">
            <style type="text/css">
            div{10px; height:10px; position:absolute; top:0; left:0;}
            div::after{
                font-family: fontawesome; content:"f06c"; font-size: 18px; color:green;
            }
            </style>
            <script src="common.js"></script>
            <script type="text/javascript">
                onload = function(){
                    var list = document.getElementsByTagName("div");
                    list = toarray(list);
                    document.onmousemove = function(ev){
                        var e = ev || event;
                        var last = list.pop();
                        last.style.left = e.clientX + "px";
                        last.style.top = e.clientY + "px";
                        list.unshift(last);
                    }
                }
            </script>
        </head>
    <body>
        <div style="left: 341px; top: 172px;"></div>
        <div style="top: 172px; left: 341px;"></div>
        <div style="top: 69px; left: 272px;"></div>
        <div style="top: 69px; left: 272px;"></div>
        <div style="top: 69px; left: 272px;"></div>
        <div style="top: 75px; left: 275px;"></div>
        <div style="top: 77px; left: 278px;"></div>
        <div style="top: 81px; left: 281px;"></div>
        <div style="top: 83px; left: 284px;"></div>
        <div style="top: 86px; left: 291px;"></div>
        <div style="top: 86px; left: 299px;"></div>
    </body></html>
  • 相关阅读:
    Session攻击(会话劫持+固定)与防御
    console调试命令
    javascript获取当前url
    搞不清FastCgi与PHP-fpm之间是个什么样的关系
    MySQL基本语句优化10个原则
    PHP获取类名及所有函数名
    js闭包
    字段、方法、属性
    python面向对象之类成员修饰符
    实现Python代码发送邮件
  • 原文地址:https://www.cnblogs.com/tis100204/p/10310009.html
Copyright © 2011-2022 走看看