zoukankan      html  css  js  c++  java
  • 简单的鼠标跟随一

    Html代码 复制代码 收藏代码
    1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    2. <html xmlns="http://www.w3.org/1999/xhtml">
    3. <head>
    4. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    5. <title>简单的鼠标跟随提示</title>
    6. </head>
    7. <body>
    8. <img src="http://www.jb51.net/images/logo.gif" style="position:absolute;z-index:10000;">
    9. <script type="text/javascript">
    10. document.onmousemove = function(e) {
    11. var ee = e ? e : window.event;
    12. var posx = e.clientX;
    13. var posy = e.clientY;
    14. document.images[0].style.left = posx + "px";
    15. document.images[0].style.top = posy + "px";
    16. }
    17. </script>
    18. </body>
    19. <html>

  • 相关阅读:
    Codeforces 376A. Night at the Museum
    Assigning Workstations
    树的直径证明
    Frogger
    Circle
    HDU 1022 Train Problem I
    Argus
    树状数组总结
    C++ 容器(一):顺序容器简介
    C++ 输出缓冲区的管理
  • 原文地址:https://www.cnblogs.com/bjanzhuo/p/3576091.html
Copyright © 2011-2022 走看看