zoukankan      html  css  js  c++  java
  • 网页飘窗

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
     <head>
      <title> New Document </title>
      <meta name="Generator" content="EditPlus">
      <meta name="Author" content="">
      <meta name="Keywords" content="">
      <meta name="Description" content="">


      <script type="text/javascript" src="http://www.114yg.cn/static/js/jquery-1.7.2.min.js?t=20130922"></script> 
     </head>


     <body>
      <div id="float_icon" style="position: absolute; z-index: 99999; top: 164px; left: 484px; visibility: visible;"> <a href="http://qhcom.gov.cn/articleinfo/detail_16_92_2329.aspx" target="_blank"><img src="http://img.114yg.cn/group1/M00/08/0B/wKhSIVPglD-ANXdyAABJe2YLVHY611.jpg"></a> </div> <script type="text/javascript">var dirX =1,dirY =1;var posX =0,posY =0;document.getElementById("float_icon").style.top =0;document.getElementById("float_icon").style.left =0;float_icon.style.visibility ="visible";window.setInterval("moveIcon()",50);function moveIcon() {posX +=(2 *dirX);posY +=(2 *dirY);$("#float_icon").css("top",posY);$("#float_icon").css("left",posX);if(posX < 1 ||posX + document.getElementById("float_icon").offsetWidth >$(window).width())
    {dirX =-dirX;}
    if(posY < 1 ||posY + document.getElementById("float_icon").offsetHeight+5 >$(window).height())
    {dirY =-dirY;} 
    }
    </script>
     </body>
    </html>

  • 相关阅读:
    函数
    函数知识点 --- 函数的认知,组成,格式 --------------- #10
    打包app
    vue ie
    css position
    awesome vue
    20110636乐建18588529432
    vue2.0-基于elementui换肤[自定义主题]
    三目运算符,多条件判断
    微信二次开发准备工作
  • 原文地址:https://www.cnblogs.com/Mr-Rocker/p/4378028.html
Copyright © 2011-2022 走看看