zoukankan      html  css  js  c++  java
  • 163的JS滑屏广告 网页代码站(www.webdm.cn)

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>163的JS滑屏广告 - 网页代码站(www.webdm.cn)</title>
       <script type="text/javascript" language="javascript">
        var time = 500;
        var h = 0;
        function addCount()
        {
            if(time>0)
            {
                time--;
                h = h+5;
            }
            else
            {
                return;
            }
            if(h>260)  //高度
            {
                return;
            }
            document.getElementById("ads").style.display = "";
            document.getElementById("ads").style.height = h+"px";
            setTimeout("addCount()",30);
        }
       
        window.onload = function showAds()
        {
            addCount();
            setTimeout("noneAds()",4000); //停留时间自己适当调整
        }
        </script>
       
        <script type="text/javascript" language="javascript">
        var T = 260;
        var N = 260; //高度
        function noneAds()
        {
            if(T>0)
            {
                T--;
                N = N-5;
            }
            else
            {
                return;
            }
            if(N<0)
            {
                document.getElementById("ads").style.display = "none";
                return;
            }
           
            document.getElementById("ads").style.height = N+"px";
            setTimeout("noneAds()",30);
        }
        </script>
    <!--
    body,td,th {
        font-size: 12px;
        color: #999999;
    line-height:20px}
    .STYLE1 {
        font-size: 24px;
        font-weight: bold;
        color: #FF0000;
    }
    .STYLE2 {
        font-size: 16px;
        font-weight: bold;
        color: #3333CC;
    }
    -->
    </style>
    </head>
    <body>
        <div id="ads" style="margin:auto; display:none; 900px; top:0px; height:0px; border:solid 1px #000; background-color:#fafafa;

    overflow:hidden; text-align:center;">
    <td width="900" height="280"><a href="http:"><img src="http://www.webdm.cn/images/20090917/webad.jpg" border="0"></a></td>
        </div>
        <div style="margin:auto; 900px; height:200px; border:solid 1px #000; background-color:#fafafa; text-align:center;">
            <div align="left"><br>
              <span class="STYLE1">这里是你的主页内容</span><br>
              <span class="STYLE2">网页代码站欢迎您!</span><br>
          <a href="http://www.webdm.cn">网页代码站</a> - 最专业的代码下载网站 - 致力为中国站长提供有质量的代码!
            </div>
        </div>
    </body>
    </html>


    文章来自:http://www.webdm.cn/webcode/43453bf2-a9d2-4acc-9145-89f38d839633.html

  • 相关阅读:
    react和vue——比较
    CSS 网格布局学习
    Spark 获取指定分区内的数据
    Spark常见算子
    使用 python 批量插入 hive
    Linux 获取在使用的网卡名称,信息
    Linux 修改成静态IP 设置网关 DNS
    Linux shell 使用脚本 修改文本中的 key value
    Linux 上的一些有用的shell脚本
    使用canda 安装 pyhdfs 实现文件上传到 HDFS
  • 原文地址:https://www.cnblogs.com/webdm/p/1888368.html
Copyright © 2011-2022 走看看