zoukankan      html  css  js  c++  java
  • 公告栏文字滚动

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>cnblogs.com/kedarui</title>
    <style>
    a
    {
      display: block;
      font-size: 15px;
      line-height: 18px;
      text-decoration: none;
      color: #333;
      font-family: Arial;
      font-size: 12px;
    }
    .shell
    {
      background:no-repeat 4px 5px;
      border: 1px solid #aaa;
      400px;
      padding: 3px 2px 2px 20px;
    }
    #div1
    {
      height: 36px;
      overflow: hidden;
    }
    </style>
    </head>
    <body>
    <div class="shell">
      <div id="div1">
        <a>这是</a>
        <a>我的</a>
        <a>第一篇</a>
        <a>博客</a>
      </div>
    </div>
    </body>
    <script>
      var c, _ = Function;
      with (o = document.getElementById("div1")) { innerHTML += innerHTML; onmouseover = _("c=1"); onmouseout = _("c=0"); }
      (F = _("if(#%18||!c)#++,#%=o.scrollHeight>>1;setTimeout(F,#%18?10:3000);".replace(/#/g, "o.scrollTop")))();
    </script>
    </html>

  • 相关阅读:
    CSS学习1
    三个和尚没水喝阅读笔记
    Javascript学习1

    mv 批量
    emacs 大小写转换
    too many open files
    成都定房
    有关重定向
    postgresql 数据库
  • 原文地址:https://www.cnblogs.com/kedarui/p/3529932.html
Copyright © 2011-2022 走看看